From 5f77ef09914d2b3ecdc74acf2f1b3b267284a70f Mon Sep 17 00:00:00 2001 From: Illia Silin <98187287+illsilin@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:55:02 -0700 Subject: [PATCH] Update the config.h after the CK_USE_XDL/WMMA are set. (#1236) * pass XDL and WMMA macros to libs that use CK * update config.h after XDL and WMMA macros get set [ROCm/composable_kernel commit: 7cdf5a96d284a2d4c9fbb4728040b2f7537e80b3] --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c77f520ad..7b9721d057 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,9 +81,6 @@ endif() include(getopt) -# CK config file to record supported datatypes, etc. -configure_file(include/ck/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/ck/config.h) - # CK version file to record release version as well as git commit hash find_package(Git REQUIRED) execute_process(COMMAND "${GIT_EXECUTABLE}" rev-parse HEAD OUTPUT_VARIABLE COMMIT_ID OUTPUT_STRIP_TRAILING_WHITESPACE) @@ -159,6 +156,9 @@ else() set(CK_USE_WMMA "ON") endif() +# CK config file to record supported datatypes, etc. +configure_file(include/ck/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/ck/config.h) + find_package(hip) # No assumption that HIP kernels are launched with uniform block size for backward compatibility # SWDEV-413293 and https://reviews.llvm.org/D155213