From bcfbef03460bcb445253c2599048fa33d0f8fa29 Mon Sep 17 00:00:00 2001 From: Andrea Bocci Date: Tue, 10 Feb 2026 19:06:35 +0100 Subject: [PATCH] Disable eigen debug for CUDA device code EIGEN_CUDACC is defined also when nvcc compiles host code, while EIGEN_CUDA_ARCH is only define when compiling device code. --- Eigen/src/Core/util/Macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index ab622c6b39..ad3fb2c429 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -848,7 +848,7 @@ // GPU stuff // Disable some features when compiling with GPU compilers (SYCL/HIPCC) -#if defined(EIGEN_CUDACC) || defined(SYCL_DEVICE_ONLY) || defined(EIGEN_HIP_DEVICE_COMPILE) +#if defined(EIGEN_CUDA_ARCH) || defined(SYCL_DEVICE_ONLY) || defined(EIGEN_HIP_DEVICE_COMPILE) // Do not try asserts on device code #ifndef EIGEN_NO_DEBUG #define EIGEN_NO_DEBUG