diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a668e823..1a355320 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -646,8 +646,9 @@ endif() # The M2XFP4 rows over the 27B-trunk fixture set (see the root CMakeLists): the four max-tok # passes replayed together, covering the m2xfp4a8 decode row's whole M ladder. Scoped to -# libref:libr4d: the m2 arm of the other host library is that library's own to bring up. -if(TARGET rad-kbench AND EXISTS ${CMAKE_SOURCE_DIR}/data/kernels_m2xfp4_m128.rkb) +# libref:libr4d: the m2 arm of the other host library is that library's own to bring up. It needs +# libr4d, so only a HIP build has it (a CPU-only or SYCL build has no libr4d to load). +if(RAD_HIP_FOUND AND TARGET rad-kbench AND EXISTS ${CMAKE_SOURCE_DIR}/data/kernels_m2xfp4_m128.rkb) add_test(NAME kbench_m2xfp4 COMMAND rad-kbench --home ${RAD_PLUGIN_OUT} --kernels libref:libr4d --max-cases 1 --no-ref --strict --coverage ${RAD_KBENCH_ROWS}