mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 15:55:37 +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"
|
||||
#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__
|
||||
|
Loading…
Reference in New Issue
Block a user