mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Adding RInt vector support for SYCL.
This commit is contained in:
parent
2ea5a715cf
commit
601f89dfd0
@ -65,6 +65,7 @@ struct sycl_packet_traits : default_packet_traits {
|
|||||||
HasAdd = 1,
|
HasAdd = 1,
|
||||||
HasFloor = 1,
|
HasFloor = 1,
|
||||||
HasRound = 1,
|
HasRound = 1,
|
||||||
|
HasRint = 1,
|
||||||
HasLog1p = 1,
|
HasLog1p = 1,
|
||||||
HasExpm1 = 1,
|
HasExpm1 = 1,
|
||||||
HasCeil = 1,
|
HasCeil = 1,
|
||||||
|
@ -236,6 +236,17 @@ SYCL_PROUND(cl::sycl::cl_float4)
|
|||||||
SYCL_PROUND(cl::sycl::cl_double2)
|
SYCL_PROUND(cl::sycl::cl_double2)
|
||||||
#undef SYCL_PROUND
|
#undef SYCL_PROUND
|
||||||
|
|
||||||
|
#define SYCL_PRINT(packet_type) \
|
||||||
|
template<> \
|
||||||
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type print<packet_type>( \
|
||||||
|
const packet_type& a) { \
|
||||||
|
return cl::sycl::rint(a); \
|
||||||
|
}
|
||||||
|
|
||||||
|
SYCL_PRINT(cl::sycl::cl_float4)
|
||||||
|
SYCL_PRINT(cl::sycl::cl_double2)
|
||||||
|
#undef SYCL_PRINT
|
||||||
|
|
||||||
#define SYCL_FLOOR(packet_type) \
|
#define SYCL_FLOOR(packet_type) \
|
||||||
template <> \
|
template <> \
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pfloor<packet_type>( \
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pfloor<packet_type>( \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user