mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-19 22:39:03 +00:00
* initial push - altering codegen build * fix the codegen cmake * enable codegen build for gfx908 and gfx90a * enable building codegen with INSTANCES_ONLY=ON * updating ck_rtc * remove gpu targets for codegen and rename tests * make codegen tests dependencies of tests and check targets --------- Co-authored-by: illsilin <Illia.Silin@amd.com> Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com>
18 lines
928 B
CMake
18 lines
928 B
CMake
list(APPEND CMAKE_PREFIX_PATH /opt/rocm)
|
|
add_subdirectory(rtc)
|
|
file(GLOB TEST_SRCS CONFIGURE_DEPENDS *.cpp)
|
|
foreach(TEST_SRC ${TEST_SRCS})
|
|
set_source_files_properties(${TEST_SRC} PROPERTIES LANGUAGE HIP)
|
|
get_filename_component(BASE_NAME ${TEST_SRC} NAME_WE)
|
|
add_executable(codegen_test_${BASE_NAME} ${TEST_SRC})
|
|
add_dependencies(codegen codegen_test_${BASE_NAME})
|
|
add_dependencies(tests codegen_test_${BASE_NAME})
|
|
add_dependencies(check codegen_test_${BASE_NAME})
|
|
add_test(NAME codegen_test_${BASE_NAME} COMMAND codegen_test_${BASE_NAME})
|
|
message("adding test codegen_test_${BASE_NAME}")
|
|
target_link_libraries(codegen_test_${BASE_NAME} ck_rtc ck_host)
|
|
target_include_directories(codegen_test_${BASE_NAME} PUBLIC include())
|
|
target_include_directories(codegen_test_${BASE_NAME} PUBLIC ${CK_ROOT}/include)
|
|
target_include_directories(codegen_test_${BASE_NAME} PUBLIC ${CK_ROOT}/library/include)
|
|
endforeach()
|