Skip to content

Commit

Permalink
Make experiments-config.h public
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 576840972
  • Loading branch information
akopich authored and xnnpack-bot committed Oct 26, 2023
1 parent ab16a54 commit c7e7cde
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ xnnpack_cc_library(
xnnpack_cc_library(
name = "experiments_config",
srcs = ["src/configs/experiments-config.c"],
hdrs = ["src/xnnpack/experiments-config.h"],
hdrs = ["include/experiments-config.h"],
gcc_copts = xnnpack_gcc_std_copts(),
msvc_copts = xnnpack_msvc_std_copts(),
visibility = xnnpack_visibility(),
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ IF(XNNPACK_BUILD_LIBRARY)
TARGET_COMPILE_DEFINITIONS(mutex PRIVATE _WIN32_WINNT=0x0601)
ENDIF()
SET_TARGET_PROPERTIES(XNNPACK PROPERTIES PUBLIC_HEADER include/xnnpack.h)
SET_TARGET_PROPERTIES(XNNPACK PROPERTIES PUBLIC_HEADER include/experiments-config.h)
ENDIF()

# ---[ Find libm
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/configs/experiments-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.

#include <xnnpack/experiments-config.h>
#include <experiments-config.h>

static struct xnn_experiment_config experiment_config = {0};

Expand Down
2 changes: 1 addition & 1 deletion src/configs/gemm-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <cpuinfo.h>
#endif // XNN_ENABLE_CPUINFO

#include <xnnpack/experiments-config.h>
#include <experiments-config.h>
#include <xnnpack/common.h>
#include <xnnpack/config.h>
#include <xnnpack/microfnptr.h>
Expand Down

0 comments on commit c7e7cde

Please sign in to comment.