CMakeLists.txt 654 Bytes
Newer Older
1
if(DTYPES MATCHES "fp16" OR NOT DEFINED DTYPES)
2
3
4
5
list(APPEND gpu_list gfx908 gfx90a gfx940 gfx941 gfx942)
set(target 0)
foreach(gpu IN LISTS GPU_TARGETS)
 if(gpu IN_LIST gpu_list AND target EQUAL 0)
Jing Zhang's avatar
Jing Zhang committed
6
   add_gtest_executable(test_grouped_gemm test_grouped_gemm.cpp)
7
   add_gtest_executable(test_grouped_gemm_interface test_grouped_gemm_interface.cpp)
Jing Zhang's avatar
Jing Zhang committed
8
   target_link_libraries(test_grouped_gemm PRIVATE utility device_grouped_gemm_instance)
9
10
   target_link_libraries(test_grouped_gemm_interface PRIVATE utility device_grouped_gemm_instance)
   
Jing Zhang's avatar
Jing Zhang committed
11
   add_dependencies(test_grouped_gemm test_grouped_gemm_interface)
12
13
14
   set(target 1)
 endif()
endforeach()
15
endif()