From df31ca3b9e038d9b83226a3ed3fe3c8a4cf16bdd Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Mon, 23 Nov 2015 10:03:53 -0800 Subject: Made it possible to refer t oa GPUDevice from code compile with a regular C++ compiler --- unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h index 7d80d0b91..c76d1ee3f 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h @@ -27,7 +27,6 @@ class StreamInterface { virtual void deallocate(void* buffer) const = 0; }; -#if defined(__CUDACC__) static cudaDeviceProp* m_deviceProperties; static bool m_devicePropInitialized = false; @@ -107,7 +106,6 @@ class CudaStreamDevice : public StreamInterface { const cudaStream_t* stream_; int device_; }; -#endif // __CUDACC__ struct GpuDevice { // The StreamInterface is not owned: the caller is -- cgit v1.2.3