mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 13:40:46 +01:00
SYCL prep - no sycl just make it compile through DPC++
This commit is contained in:
parent
7caed4edd9
commit
04927d2e40
@ -22,8 +22,18 @@
|
|||||||
#undef __CUDACC__
|
#undef __CUDACC__
|
||||||
#undef __CUDA_ARCH__
|
#undef __CUDA_ARCH__
|
||||||
#define __NVCC__REDEFINE__
|
#define __NVCC__REDEFINE__
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* SYCL save and restore compile environment*/
|
||||||
|
#ifdef __SYCL_DEVICE_ONLY__
|
||||||
|
#pragma push
|
||||||
|
#pragma push_macro("__SYCL_DEVICE_ONLY__")
|
||||||
|
#undef __SYCL_DEVICE_ONLY__
|
||||||
|
#undef EIGEN_USE_SYCL
|
||||||
|
#define EIGEN_DONT_VECTORIZE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <Grid/Eigen/Dense>
|
#include <Grid/Eigen/Dense>
|
||||||
#include <Grid/Eigen/unsupported/CXX11/Tensor>
|
#include <Grid/Eigen/unsupported/CXX11/Tensor>
|
||||||
|
|
||||||
@ -35,7 +45,14 @@
|
|||||||
#pragma pop
|
#pragma pop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*SYCL restore*/
|
||||||
|
#ifdef __SYCL__REDEFINE__
|
||||||
|
#pragma pop_macro("__SYCL_DEVICE_ONLY__")
|
||||||
|
#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