From 968f7591f8b4a7d1457575bac22e75465340c3db Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 21 Feb 2013 12:51:58 +0100 Subject: [PATCH] Make it compile without nvcc --- Eigen/Core | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Eigen/Core b/Eigen/Core index d8f62c825..5d0a3e785 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -57,6 +57,8 @@ #define EIGEN_NO_DEBUG // All functions callable from CUDA code must be qualified with __device__ #define EIGEN_DEVICE_FUNC __host__ __device__ +#else + #define EIGEN_DEVICE_FUNC #endif #ifndef EIGEN_DONT_VECTORIZE