From 983972fedfa7f388e01397e825b67809d49b6808 Mon Sep 17 00:00:00 2001 From: Chao Liu Date: Fri, 20 May 2022 14:40:12 -0500 Subject: [PATCH] remove options.hpp.in (#240) [ROCm/composable_kernel commit: 44943e0e2170c5bf3fde744a21b1769b0eaeffd8] --- CMakeLists.txt | 4 ---- include/ck/options.hpp | 3 +++ include/ck/options.hpp.in | 3 --- 3 files changed, 3 insertions(+), 7 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 a3ec91e3bc..e5903f3747 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/include/ck/options.hpp b/include/ck/options.hpp new file mode 100644 index 0000000000..82c604f82b --- /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 87ed6026a4..0000000000 --- a/include/ck/options.hpp.in +++ /dev/null @@ -1,3 +0,0 @@ -#pragma once - -#cmakedefine01 CK_TIME_KERNEL