mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
Merged in codeplaysoftware/eigen-upstream-pure/EIGEN_UNROLL_LOOP (pull request PR-460)
Adding EIGEN_UNROLL_LOOP macro.
This commit is contained in:
commit
7124172b83
@ -1092,5 +1092,15 @@ bool all(T t, Ts ... ts){ return t && all(ts...); }
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
#endif // EIGEN_MACROS_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user