Fix CUDA version checking in examples (#2894)

* examples: update CUDA version requirements in Blackwell examples

* examples: fix comments to specify the correct CUDA version requirement
This commit is contained in:
Andrew Yooeun Chun
2026-01-07 00:20:37 -05:00
committed by GitHub
parent 670480df3a
commit eb61c91147
11 changed files with 57 additions and 26 deletions
@@ -486,8 +486,8 @@ int run(Options &options)
int main(int argc, char const **args) {
// CUTLASS must be compiled with CUDA 12.0 Toolkit to run this example
// and must have compute capability at least 90.
// CUTLASS must be compiled with CUDA 12.8 Toolkit to run this example
// and must have compute capability at least sm100a.
if (__CUDACC_VER_MAJOR__ < 12 || (__CUDACC_VER_MAJOR__ == 12 && __CUDACC_VER_MINOR__ < 8)) {
std::cerr << "This example requires CUDA 12.8 or newer." << std::endl;
// Returning zero so this test passes on older Toolkits. Its actions are no-op.