From ead81559c85d6ec7903a47d0c34867f9a87781d7 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Tue, 3 Dec 2019 12:08:22 -0800 Subject: Use EIGEN_DEVICE_FUNC macro instead of __device__. --- unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h index b83174ab7..ca056e96e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h @@ -582,7 +582,7 @@ class TensorExecutor { #if defined(EIGEN_GPUCC) template struct EigenMetaKernelEval { - static __device__ EIGEN_ALWAYS_INLINE + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void run(Evaluator& eval, StorageIndex firstIdx, StorageIndex lastIdx, StorageIndex step_size) { for (StorageIndex i = firstIdx; i < lastIdx; i += step_size) { eval.evalScalar(i); @@ -592,7 +592,7 @@ struct EigenMetaKernelEval { template struct EigenMetaKernelEval { - static __device__ EIGEN_ALWAYS_INLINE + static EIGEN_DEVICE_FUNC EIGEN_ALWAYS_INLINE void run(Evaluator& eval, StorageIndex firstIdx, StorageIndex lastIdx, StorageIndex step_size) { const StorageIndex PacketSize = unpacket_traits::size; const StorageIndex vectorized_size = (lastIdx / PacketSize) * PacketSize; -- cgit v1.2.3