From 6d3bc5a160ae629319aa32a1a68e12a4c20fa0c0 Mon Sep 17 00:00:00 2001 From: Chao Liu Date: Wed, 18 May 2022 19:53:55 -0400 Subject: [PATCH] remove options.hpp.in --- CMakeLists.txt | 4 ---- example/CMakeLists.txt | 2 +- include/ck/options.hpp | 3 +++ include/ck/options.hpp.in | 3 --- 4 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 include/ck/options.hpp delete mode 100644 include/ck/options.hpp.in diff --git a/CMakeLists.txt b/CMakeLists.txt index a3ec91e3bcb..e5903f3747f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) message("CMAKE_CXX_COMPILER_ID: ${CMAKE_CXX_COMPILER_ID}") -option(CK_TIME_KERNEL "Turning off will disable kernel timing globally" ON) - ## OpenMP if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") # workaround issue hipcc in rocm3.5 cannot find openmp @@ -229,8 +227,6 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin) -configure_file("${PROJECT_SOURCE_DIR}/include/ck/options.hpp.in" "${PROJECT_BINARY_DIR}/include/ck/options.hpp") - include_directories(BEFORE ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 4d81e84c01c..c7b891d37b3 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -33,7 +33,7 @@ function(add_example_executable_no_testing EXAMPLE_NAME FILE_NAME) add_executable(${EXAMPLE_NAME} ${FILE_NAME}) target_link_libraries(${EXAMPLE_NAME} PRIVATE host_tensor) add_dependencies(examples ${EXAMPLE_NAME}) -endfunction(add_example_executable EXAMPLE_NAME) +endfunction(add_example_executable_no_testing EXAMPLE_NAME) add_subdirectory(01_gemm) add_subdirectory(02_gemm_alpha_beta) diff --git a/include/ck/options.hpp b/include/ck/options.hpp new file mode 100644 index 00000000000..82c604f82ba --- /dev/null +++ b/include/ck/options.hpp @@ -0,0 +1,3 @@ +#pragma once + +#define CK_TIME_KERNEL 1 diff --git a/include/ck/options.hpp.in b/include/ck/options.hpp.in deleted file mode 100644 index 87ed6026a4c..00000000000 --- a/include/ck/options.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -#cmakedefine01 CK_TIME_KERNEL