CUDA: Lower minimum device architecture check to sm_60. Native FP16 packet math intrinsics (e.g. __hfma2, h2exp, h2log) only require `__CUDA_ARCH__ >= 530`, and Pascal (sm_60) has full native FP16 hardware support and declares all needed intrinsics. Relaxing the architecture guard from sm_70 to sm_60 allows targeting Pascal GPUs (e.g. Tesla P100) while continuing to guard against pre-Pascal architectures that lack native half2 intrinsics. This is Google's default GPU test environment.
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index d4a41c0..8e6e0e7 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h
@@ -603,11 +603,11 @@ #endif // Native FP16 packet math intrinsics (e.g. __hfma2, h2exp, h2log) are only -// declared by the CUDA headers when __CUDA_ARCH__ >= 530. Eigen's documented -// floor is sm_70, so guard the device pass with a clear error rather than -// surfacing as "identifier `__hfma2` is undefined" deep inside PacketMath.h. -#if defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH < 700 -#error "Eigen requires CUDA compute capability >= 7.0 (sm_70). Compile with -arch=sm_70 or higher." +// declared by the CUDA headers when __CUDA_ARCH__ >= 530. Guard the device +// pass with a clear error rather than surfacing as "identifier `__hfma2` is +// undefined" deep inside PacketMath.h. +#if defined(EIGEN_CUDA_ARCH) && EIGEN_CUDA_ARCH < 600 +#error "Eigen requires CUDA compute capability >= 6.0 (sm_60). Compile with -arch=sm_60 or higher." #endif #if defined(__HIPCC__) && !defined(EIGEN_NO_HIP) && !defined(__SYCL_DEVICE_ONLY__)