diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-01-11 15:49:21 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-01-11 15:49:21 -0800 |
commit | 0504c56ea7b1dc4d804580cbc498b189ffd06b6e (patch) | |
tree | bf7bfdb0b9d832be52bc64a4bf91bd16308146ec /unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h | |
parent | b523771a24320014abfec537b0f4b568c19882eb (diff) |
Silenced a nvcc compilation warning
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h')
-rw-r--r-- | unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h index 867654aff..91b6e68dd 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h @@ -119,7 +119,7 @@ struct FullReducer<Self, Op, GpuDevice, Vectorizable> { assert(false && "Should only be called on floats"); } - static void run(const Self& self, Op& reducer, const GpuDevice& device, float* output) { + static EIGEN_DEVICE_FUNC void run(const Self& self, Op& reducer, const GpuDevice& device, float* output) { typedef typename Self::Index Index; const Index num_coeffs = array_prod(self.m_impl.dimensions()); |