add a CK_USE_CODEGEN build argument to enable codegen (#1552)

* add a CK_USE_CODEGEN build argument to enable codegen

* fix cmake codegen logic

[ROCm/composable_kernel commit: 7733ae167b]
This commit is contained in:
Illia Silin
2024-10-07 15:45:19 -07:00
committed by GitHub
parent ee93500dad
commit ba9783ece1

View File

@@ -97,6 +97,10 @@ if(DL_KERNELS)
add_definitions(-DDL_KERNELS)
set(CK_ENABLE_DL_KERNELS "ON")
endif()
option(CK_USE_CODEGEN "Enable codegen library" OFF)
if(CK_USE_CODEGEN)
add_definitions(-DCK_USE_CODEGEN)
endif()
include(getopt)
@@ -563,7 +567,7 @@ rocm_package_setup_component(profiler
)
add_subdirectory(profiler)
if(GPU_TARGETS MATCHES "gfx9" OR GPU_ARCHS)
if(CK_USE_CODEGEN AND (GPU_TARGETS MATCHES "gfx9" OR GPU_ARCHS))
add_subdirectory(codegen)
endif()