Commit 33405167 authored by Astha Rai's avatar Astha Rai
Browse files

added codegen flag again, set default to ON

parent 825d9008
......@@ -97,10 +97,10 @@ if(DL_KERNELS)
add_definitions(-DDL_KERNELS)
set(CK_ENABLE_DL_KERNELS "ON")
endif()
# option(CK_USE_CODEGEN "Enable codegen library" ON)
# if(CK_USE_CODEGEN)
# add_definitions(-DCK_USE_CODEGEN)
# endif()
option(CK_USE_CODEGEN "Enable codegen library" ON)
if(CK_USE_CODEGEN)
add_definitions(-DCK_USE_CODEGEN)
endif()
include(getopt)
......@@ -571,8 +571,7 @@ rocm_package_setup_component(profiler
)
add_subdirectory(profiler)
#if(CK_USE_CODEGEN AND (GPU_TARGETS MATCHES "gfx9" OR GPU_ARCHS))
if(GPU_TARGETS MATCHES "gfx9" OR GPU_ARCHS)
if(CK_USE_CODEGEN AND (GPU_TARGETS MATCHES "gfx9" OR GPU_ARCHS))
add_subdirectory(codegen)
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment