Adding EIGEN_UNROLL_LOOP macro.

This commit is contained in:
Mehdi Goli 2018-08-08 11:07:27 +01:00
parent 10d286f55b
commit 22031ab59a

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