mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-14 01:35:36 +00:00
Use NVCC to suppress device Eigen
This commit is contained in:
parent
6c97a6a071
commit
dd891f5e3b
@ -5,7 +5,7 @@
|
|||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef GRID_NVCC
|
#ifdef __NVCC__
|
||||||
#pragma push
|
#pragma push
|
||||||
#pragma diag_suppress code_is_unreachable
|
#pragma diag_suppress code_is_unreachable
|
||||||
#undef __NVCC__
|
#undef __NVCC__
|
||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include <Grid/Eigen/Dense>
|
#include <Grid/Eigen/Dense>
|
||||||
|
|
||||||
#ifdef GRID_NVCC
|
#ifdef __NVCC__
|
||||||
#pragma pop
|
#pragma pop
|
||||||
#define __NVCC__
|
#define __NVCC__
|
||||||
#define __CUDACC__
|
#define __CUDACC__
|
||||||
|
Loading…
Reference in New Issue
Block a user