Skip to content

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++

gr_upmix_parity: skipped (exit 77) below sm_80, where the fused read refuses by design (#1370 follow-up)

Niko122198f5484c8d88
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 764471475..04ebbc5ca 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -896,6 +896,7 @@ if(STRATA_ENABLE_CUDA OR STRATA_ENABLE_HIP)
add_executable(gr_upmix_parity src/prefill/gr_upmix_parity.cu)
target_link_libraries(gr_upmix_parity PRIVATE strata_prefill )
add_test(NAME gr_upmix_parity COMMAND gr_upmix_parity)
+ set_tests_properties(gr_upmix_parity PROPERTIES SKIP_RETURN_CODE 77)
endif()
# native_expert_grouped's group stride and fused SwiGLU + q8_1, bitwise vs the launches before them (GPU, synthetic,
# no model; --bench adds v1/new timings of a window's 48 calls in a graph)
diff --git a/src/prefill/gr_upmix_parity.cu b/src/prefill/gr_upmix_parity.cu
index 0c3975ca2..32c15290a 100644
--- a/src/prefill/gr_upmix_parity.cu
+++ b/src/prefill/gr_upmix_parity.cu
@@ -208,6 +208,14 @@ void bench(strata::prefill::Gemm& gm, cudaStream_t st, float* gated, int64_t T)
} // namespace
int main(int argc, char** argv) {
+ { // the fused read is sm_80+ (cp.async, BF16 mma): an older card has nothing to compare
+ int dev = 0, major = 0;
+ if (cudaGetDevice(&dev) != cudaSuccess || cudaDeviceGetAttribute(&major, cudaDevAttrComputeCapabilityMajor, dev) != cudaSuccess) {
+ std::printf("gr_upmix_parity: no CUDA device, skipped\n");
+ return 77;
+ }
+ if (major < 8) { std::printf("gr_upmix_parity: sm_%d0, the fused read needs sm_80+: skipped\n", major); return 77; }
+ }
const bool do_bench = argc > 1 && std::string(argv[1]) == "--bench";
cudaStream_t st = nullptr;
if (!ck(cudaStreamCreate(&st), "stream")) return 1;