Merged in codeplaysoftware/eigen-upstream-pure/EIGEN_UNROLL_LOOP (pull request PR-460)

Adding EIGEN_UNROLL_LOOP macro.
This commit is contained in:
Benoit Steiner 2018-08-08 18:10:54 +00:00
commit 7124172b83

View File

@ -1092,5 +1092,15 @@ bool all(T t, Ts ... ts){ return t && all(ts...); }
}
#endif
// Wrapping #pragma unroll in a macro since it is required for SYCL
#if defined(__SYCL_DEVICE_ONLY__)
#if defined(_MSC_VER)
#define EIGEN_UNROLL_LOOP __pragma(unroll)
#else
#define EIGEN_UNROLL_LOOP _Pragma("unroll")
#endif
#else
#define EIGEN_UNROLL_LOOP
#endif
#endif // EIGEN_MACROS_H