mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
Adding EIGEN_UNROLL_LOOP macro.
This commit is contained in:
parent
10d286f55b
commit
22031ab59a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user