mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-13 09:45:56 +00:00
* initial push * cleaned up compiler errors * removed commented code * build codegen folder only for gfx9 targets * remove separate stage for codegen tests from CI * removed commented code from CMake --------- Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com> Co-authored-by: illsilin <Illia.Silin@amd.com>
16 lines
836 B
CMake
16 lines
836 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(test_host_${BASE_NAME} ${TEST_SRC})
|
|
add_dependencies(codegen test_host_${BASE_NAME})
|
|
add_test(NAME codegen_test_${BASE_NAME} COMMAND test_host_${BASE_NAME})
|
|
target_link_libraries(test_host_${BASE_NAME} ck_rtc ck_host)
|
|
# target_link_libraries(test_host_${BASE_NAME} ${CK_ROOT}/build/lib/libutility.a)
|
|
target_include_directories(test_host_${BASE_NAME} PUBLIC include())
|
|
target_include_directories(test_host_${BASE_NAME} PUBLIC ${CK_ROOT}/include)
|
|
target_include_directories(test_host_${BASE_NAME} PUBLIC ${CK_ROOT}/library/include)
|
|
endforeach()
|