diff options
author | Mehdi Goli <mehdi.goli@codeplay.com> | 2019-06-27 12:25:09 +0100 |
---|---|---|
committer | Mehdi Goli <mehdi.goli@codeplay.com> | 2019-06-27 12:25:09 +0100 |
commit | 16a56b2dddbfaf2d4b81d62be5e3139f12783ac8 (patch) | |
tree | 9ce9ce2f27b9cfadfc34004aecede743e65b6d51 /test/main.h | |
parent | adec097c61bd2ff049378b063a4665910c1ed5cc (diff) |
[SYCL] This PR adds the minimum modifications to Eigen core required to run Eigen unsupported modules on devices supporting SYCL.
* Adding SYCL memory model
* Enabling/Disabling SYCL backend in Core
* Supporting Vectorization
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/main.h b/test/main.h index 93e894460..4c1733b1f 100644 --- a/test/main.h +++ b/test/main.h @@ -70,7 +70,7 @@ // protected by parenthesis against macro expansion, the min()/max() macros // are defined here and any not-parenthesized min/max call will cause a // compiler error. -#if !defined(__HIPCC__) +#if !defined(__HIPCC__) && !defined(EIGEN_USE_SYCL) // // HIP header files include the following files // <thread> @@ -277,7 +277,7 @@ namespace Eigen } #endif //EIGEN_EXCEPTIONS - #elif !defined(__CUDACC__) && !defined(__HIPCC__) && !defined(__SYCL_DEVICE_ONLY__) // EIGEN_DEBUG_ASSERTS + #elif !defined(__CUDACC__) && !defined(__HIPCC__) && !defined(SYCL_DEVICE_ONLY) // EIGEN_DEBUG_ASSERTS // see bug 89. The copy_bool here is working around a bug in gcc <= 4.3 #define eigen_assert(a) \ if( (!Eigen::internal::copy_bool(a)) && (!no_more_assert) )\ @@ -334,7 +334,7 @@ namespace Eigen std::cout << "Can't VERIFY_RAISES_STATIC_ASSERT( " #a " ) with exceptions disabled\n"; #endif - #if !defined(__CUDACC__) && !defined(__HIPCC__) && !defined(__SYCL_DEVICE_ONLY__) + #if !defined(__CUDACC__) && !defined(__HIPCC__) && !defined(SYCL_DEVICE_ONLY) #define EIGEN_USE_CUSTOM_ASSERT #endif |