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)
   add_test_executable(test_batched_gemm_fp16 batched_gemm_fp16.cpp)
   if(result EQUAL 0)
      target_link_libraries(test_batched_gemm_fp16 PRIVATE utility device_batched_gemm_instance)
   endif()
   add_test_executable(test_batched_gemm_fp32 batched_gemm_fp32.cpp)
   if(result EQUAL 0)
      target_link_libraries(test_batched_gemm_fp32 PRIVATE utility device_batched_gemm_instance)
   endif()
   add_test_executable(test_batched_gemm_bf16 batched_gemm_bf16.cpp)
   if(result EQUAL 0)
      target_link_libraries(test_batched_gemm_bf16 PRIVATE utility device_batched_gemm_instance)
   endif()
   add_test_executable(test_batched_gemm_int8 batched_gemm_int8.cpp)
   if(result EQUAL 0)
      target_link_libraries(test_batched_gemm_int8 PRIVATE utility device_batched_gemm_instance)
   endif()
   set(target 1)
 endif()
endforeach()