Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
tests: hip_prefill_wmma_gemm_parity skips on a card without matrix cores instead of failing (#1148)
xjc101db5d255ad63
diff --git a/CMakeLists.txt b/CMakeLists.txtindex b147be05e..9e9002a37 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -612,6 +612,7 @@ if(STRATA_ENABLE_CUDA OR STRATA_ENABLE_HIP)target_include_directories(hip_prefill_wmma_gemm_parity PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/prefill")target_link_libraries(hip_prefill_wmma_gemm_parity PRIVATE strata_prefill strata_hip_runtime)add_test(NAME hip_prefill_wmma_gemm_parity COMMAND hip_prefill_wmma_gemm_parity)+ set_tests_properties(hip_prefill_wmma_gemm_parity PROPERTIES SKIP_RETURN_CODE 77) # no matrix cores: skippedlist(APPEND _strata_hip_tests hip_prefill_wmma_gemm_parity)# S (STRATA_HCD_EXACT): the exact HC down kernel against hipBLASLt solution 1176 / 1177 (needs STRATA_HIPBLASLT_TUNING; exit 77 else)add_executable(hip_prefill_hcd_exact_parity tests/hip/prefill_hcd_exact_parity.cpp)diff --git a/tests/hip/prefill_wmma_gemm_parity.cpp b/tests/hip/prefill_wmma_gemm_parity.cppindex bb7c15919..4883a9fbb 100644--- a/tests/hip/prefill_wmma_gemm_parity.cpp+++ b/tests/hip/prefill_wmma_gemm_parity.cpp@@ -4,6 +4,7 @@#include <hip/hip_fp16.h>#include "wmma_gemm.h"+#include "strata/kernels/gfx_arch.hpp"#include <algorithm>#include <cmath>@@ -269,6 +270,13 @@ int main() {HIP_CHECK(hipGetDeviceProperties(&properties, device));std::printf("Device %d: %s (arch %s, warpSize %d)\n",device, properties.name, properties.gcnArchName, properties.warpSize);+ // No matrix cores (RDNA2 and older, gfx906): the kernel declines every shape, so the suite has nothing to compare+ // and reports that as a skip (exit 77, SKIP_RETURN_CODE in CMake), as hip_prompt_attn_wmma does, not a failure.+ if (!strata::kernels::gfx_arch_is_gfx11_wmma(properties.gcnArchName)) {+ std::printf("WMMA GEMM parity SKIPPED: %s has no WMMA matrix cores (the kernel declines every shape here)\n",+ properties.gcnArchName);+ return 77;+ }hipStream_t stream = nullptr;HIP_CHECK(hipStreamCreateWithFlags(&stream, hipStreamNonBlocking));