Merge f-fp16-bench b9bd40181 into f-p4-int (a test tool that times one prompt layer of experts on every prompt path, and the dense prompt GEMMs with FP16 io off and on)

b9bd40181 adds tests/cuda/prefill_expert_paths_bench.cpp and one CMake block each in cmake/backends/cuda.cmake and cmake/backends/hip.cmake, with a --quick ctest smoke
entry for CUDA and HIP. Test side only: no product code. Merged onto this head; nothing changed by hand.
This commit is contained in:
Niko1221 committed 2026-11-12 17:19:34 +01:00
commit 662e72ac20
3 files changed
+1165

No files matched your search

+7
View File
@@ -334,6 +334,13 @@ macro(strata_cuda_prompt_tests)
target_link_libraries(prefill_fused_iq_test PRIVATE ${_strata_pf_tests_lib} ggml-base ${_strata_gpu_runtime_target})
add_test(NAME prefill_fused_iq_test COMMAND prefill_fused_iq_test)
set_tests_properties(prefill_fused_iq_test PROPERTIES SKIP_RETURN_CODE 77 TIMEOUT 600)
# one prompt layer of experts timed on every path the engine can take (MMQ where it is built, the dequantize + FP16 GEMM path with and without
# the few-row experts, the grouped kernels, the fused kernels where the card has them), hash and error of each against a CPU reference; runs on
# any card (77 only without one). The ctest entry is a small smoke run; the grid is `prefill_expert_paths_bench` itself (see its source's head)
add_executable(prefill_expert_paths_bench tests/cuda/prefill_expert_paths_bench.cpp)
target_link_libraries(prefill_expert_paths_bench PRIVATE strata_prefill ${_strata_pf_tests_lib} ggml-base ${_strata_gpu_runtime_target})
add_test(NAME prefill_expert_paths_bench COMMAND prefill_expert_paths_bench --quick)
set_tests_properties(prefill_expert_paths_bench PROPERTIES SKIP_RETURN_CODE 77 TIMEOUT 600)
# P4-SMALL: the fused experts for one gathered group (the layer-major walk's entry) against the layer's fused path (bits) and MMQ in the walk
# (P4-INT: MMQ builds only: the test returns 1 where mmq::built() is false, it has no no-MMQ rule yet)
if(STRATA_MMQ)
+7
View File
@@ -143,6 +143,13 @@ macro(strata_hip_prompt_tests)
add_test(NAME hip_prefill_fused_iq_f16 COMMAND hip_prefill_fused_iq)
set_tests_properties(hip_prefill_fused_iq_f16 PROPERTIES SKIP_RETURN_CODE 77 TIMEOUT 600 ENVIRONMENT "STRATA_PF_F16=1;STRATA_PF_F16_KQ=1")
list(APPEND _strata_hip_tests hip_prefill_fused_iq)
# one prompt layer of experts timed on every path the engine can take (see tests/cuda/prefill_expert_paths_bench.cpp); any AMD card, a small smoke run here
add_executable(hip_prefill_expert_paths_bench tests/cuda/prefill_expert_paths_bench.cpp)
target_include_directories(hip_prefill_expert_paths_bench PRIVATE "${_strata_gg}/include")
target_link_libraries(hip_prefill_expert_paths_bench PRIVATE strata_prefill ${_strata_pf_tests_lib} ggml-base strata_hip_runtime)
add_test(NAME hip_prefill_expert_paths_bench COMMAND hip_prefill_expert_paths_bench --quick)
set_tests_properties(hip_prefill_expert_paths_bench PROPERTIES SKIP_RETURN_CODE 77 TIMEOUT 600)
list(APPEND _strata_hip_tests hip_prefill_expert_paths_bench)
# STRATA_PF_FUSED_Q8D=1 (gfx12, opt-in): the pinned UD-IQ4_XS's i-quant / Q8_0 pairs on the fused kernels without the K-quant switch (--no-kq);
# off gfx12 the pairs are not covered without STRATA_PF_FUSED_KQ and the test skips (77, as without a card)
add_test(NAME hip_prefill_fused_iq_q8d COMMAND hip_prefill_fused_iq "--only=S / Q8_0" --edge --no-timing --no-kq)
File diff suppressed because it is too large. Load diff