From 6174d5ee5cccb3030f8eb8892c182045c1e08f61 Mon Sep 17 00:00:00 2001 From: pascallinxweiler Date: Fri, 23 Oct 2026 23:30:24 +0200 Subject: [PATCH] tests: kbench_m2xfp4 only in a HIP build -- it loads libr4d The test from the m2xfp merge names --kernels libref:libr4d; a CPU-only or SYCL build has no libr4d, so the replay loaded nothing and failed in 0.02 s. Guarded on RAD_HIP_FOUND as the tree's other libr4d tests are. ctest -LE 'gpu|oot' after the merge: 84/89, the five known failures (images_test and videos_test: no FFmpeg; glm5next, gbnf_shard2, quant_ggml: CPU budget). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1 --- tests/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}