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: 7cdf5a96d2]
This commit is contained in:
Illia Silin
2024-04-12 10:55:02 -07:00
committed by GitHub
parent acdd0ce547
commit 5f77ef0991

View File

@@ -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