1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-07-27 01:37:07 +01:00

Use NVCC to suppress device Eigen

This commit is contained in:
paboyle
2018-06-27 21:25:17 +01:00
parent 6c97a6a071
commit dd891f5e3b

View File

@@ -5,7 +5,7 @@
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#ifdef GRID_NVCC
#ifdef __NVCC__
#pragma push
#pragma diag_suppress code_is_unreachable
#undef __NVCC__
@@ -18,7 +18,7 @@
#include <Grid/Eigen/Dense>
#ifdef GRID_NVCC
#ifdef __NVCC__
#pragma pop
#define __NVCC__
#define __CUDACC__