mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
Hip Pragmas
This commit is contained in:
parent
1efe30d6cc
commit
48e81cf6f8
@ -34,6 +34,12 @@
|
|||||||
#define __SYCL__REDEFINE__
|
#define __SYCL__REDEFINE__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* HIP save and restore compile environment*/
|
||||||
|
#ifdef GRID_HIP
|
||||||
|
#pragma push
|
||||||
|
#pragma push_macro("__HIP_DEVICE_COMPILE__")
|
||||||
|
#endif
|
||||||
|
#define EIGEN_NO_HIP
|
||||||
|
|
||||||
#include <Grid/Eigen/Dense>
|
#include <Grid/Eigen/Dense>
|
||||||
#include <Grid/Eigen/unsupported/CXX11/Tensor>
|
#include <Grid/Eigen/unsupported/CXX11/Tensor>
|
||||||
@ -52,6 +58,12 @@
|
|||||||
#pragma pop
|
#pragma pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*HIP restore*/
|
||||||
|
#ifdef __HIP__REDEFINE__
|
||||||
|
#pragma pop_macro("__HIP_DEVICE_COMPILE__")
|
||||||
|
#pragma pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined __GNUC__
|
#if defined __GNUC__
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user