Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 02-mixed-precision-gemm/mixed_precision_gemm.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <torch/extension.h>
#include <torch/types.h>

#if (defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 890) && ((__CUDACC_VER_MAJOR__ >= 12) && (__CUDACC_VER_MINOR__ >= 4)))
#if (defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 890) && (__CUDACC_VER_MAJOR__ * 100 + __CUDACC_VER_MINOR__ >= 1204))
#define CUTE_ARCH_MMA_SM89_ENABLED
#endif

Expand Down Expand Up @@ -126,7 +126,7 @@ struct SM90_16x8x32_F32E4M3E5M2F32_TN {
: "=f"(d0), "=f"(d1), "=f"(d2), "=f"(d3)
: "r"(a0), "r"(a1), "r"(a2), "r"(a3), "r"(b0), "r"(b1), "f"(c0), "f"(c1), "f"(c2), "f"(c3));
#else
CUTE_INVALID_CONTROL_PATH("Attempting to use SM90_16x8x32_F32E4M3E5M2F32_TN without CUTE_ARCH_MMA_SM89_ENABLED");
CUTE_INVALID_CONTROL_PATH("Attempting to use SM90_16x8x32_F32E4M3E5M2F32_TN without CUTE_ARCH_MMA_SM89_ENABLED\n");
#endif
}
};
Expand Down
Loading