mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-14 18:17:44 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user