mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
CUDA_ARCH more carefule treatment
This commit is contained in:
parent
847c761ccc
commit
2075b177ef
@ -10,8 +10,11 @@
|
||||
#pragma diag_suppress code_is_unreachable
|
||||
#undef __NVCC__
|
||||
#undef __CUDACC__
|
||||
#ifdef __CUDA_ARCH__
|
||||
#define __CUDA_ARCH__REDEFINE__
|
||||
#undef __CUDA_ARCH__
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <Grid/Eigen/Dense>
|
||||
|
||||
@ -19,8 +22,11 @@
|
||||
#pragma pop
|
||||
#define __NVCC__
|
||||
#define __CUDACC__
|
||||
|
||||
#ifdef __CUDA_ARCH__REDEFINE__
|
||||
#define __CUDA_ARCH__
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
|
Loading…
Reference in New Issue
Block a user