1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-09-20 17:25:37 +01:00
Grid/lib/Grid_Eigen_Dense.h

48 lines
678 B
C
Raw Normal View History

#include <Grid/GridCore.h>
#pragma once
#if defined __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
2018-06-27 21:25:17 +01:00
#ifdef __NVCC__
#pragma push
#pragma diag_suppress code_is_unreachable
#define __NVCC__REDEFINE__
#undef __NVCC__
#undef __CUDACC__
2018-06-13 20:22:34 +01:00
#ifdef __CUDA_ARCH__
#define __CUDA_ARCH__REDEFINE__ 1
#define __CUDA_ARCH_SAVE__ __CUDA_ARCH__
#undef __CUDA_ARCH__
#endif
2018-06-13 20:22:34 +01:00
#endif
#include <Grid/Eigen/Dense>
#ifdef __NVCC__REDEFINE__
#pragma pop
#define __NVCC__
#define __CUDACC__
2018-06-13 20:22:34 +01:00
#ifdef __CUDA_ARCH__REDEFINE__
#define __CUDA_ARCH__ __CUDA_ARCH_SAVE__
#endif
2018-06-13 20:22:34 +01:00
#endif
#if defined __GNUC__
#pragma GCC diagnostic pop
#endif