diff --git a/include/matx.h b/include/matx.h index 0543d98a..827b85fa 100644 --- a/include/matx.h +++ b/include/matx.h @@ -32,6 +32,9 @@ #pragma once #ifdef __CUDACC__ +#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 600 +#error "MatX requires CUDA compute capability 6.0 or newer." +#endif #include #endif #include