sm_75 series: the bitwise Turing kernels (#2069-#2072 #2081 #2093 #2220-#2222) are opt-in with STRATA_SM75_PERF=1

No sm_75 card is available here to confirm the series, so the kernels that were on by default for compute capability 7.5
in the submitted PRs now follow one switch, include/strata/core/sm75_series.hpp.  Each keeps its own variable, which
wins in both directions.  The one-read prompt top-k (#2093) was on for every CUDA card as submitted; it is now Turing only
like the rest.  STRATA_EMULATE_CC=75 counts as a Turing card, so a 75-virtual build on an sm_86 GPU runs the series for tests.
This commit is contained in:
Niko1221 committed 2026-10-15 08:53:32 +02:00
1 parent 6e76ae23fd
commit 7f1964a6cb
8 files changed
+87 -25

No files matched your search

+3 -2
View File
@@ -1,5 +1,6 @@
// src/core/verify.cpp - see include/strata/core/verify.hpp.
#include "strata/core/batch_rows.hpp"
#include "strata/core/sm75_series.hpp"
#include "strata/kernels/gfx_arch.hpp"
#include "strata/core/verify.hpp"
#if !defined(STRATA_USE_HIP) && !defined(STRATA_HIP_GFX906)
@@ -249,7 +250,7 @@ bool head_mix_multi_enabled() {
// copy_rows_from_mapped_after): same reads, same values, one kernel node fewer each. A dependent kernel costs ~2.4 us in a
// gfx1201 graph whatever it does; measured on gfx12 only, so it is on there by default. STRATA_FUSE_WAIT=0 / 1 forces it
// off / on (HIP builds; a CUDA build never fuses).
// sm_75 (Turing) defaults of the CUDA build's switches below, read per device
// the Turing series (STRATA_SM75_PERF=1, sm75_series.hpp) defaults of the CUDA build's switches below, read per device
bool device_is_sm75() {
#if defined(STRATA_USE_HIP)
return false;
@@ -262,7 +263,7 @@ bool device_is_sm75() {
const bool ok = cudaDeviceGetAttribute(&maj, cudaDevAttrComputeCapabilityMajor, dev) == cudaSuccess &&
cudaDeviceGetAttribute(&mnr, cudaDevAttrComputeCapabilityMinor, dev) == cudaSuccess;
if (!ok) cudaGetLastError();
per_dev[dev] = ok && maj == 7 && mnr == 5 ? 2 : 1;
per_dev[dev] = ok && strata::sm75_default(maj, mnr) ? 2 : 1; // a Turing card with STRATA_SM75_PERF=1
}
return per_dev[dev] == 2;
#endif