mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
[Missing SYCL math op]: Addin the missing LDEXP Function for SYCL.
This commit is contained in:
parent
61461d682a
commit
b9ff791fed
@ -281,6 +281,19 @@ SYCL_PMAX(cl::sycl::cl_float4, cl::sycl::fmax(a, b))
|
||||
SYCL_PMAX(cl::sycl::cl_double2, cl::sycl::fmax(a, b))
|
||||
#undef SYCL_PMAX
|
||||
|
||||
#define SYCL_PLDEXP(packet_type) \
|
||||
template <> \
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE packet_type pldexp( \
|
||||
const packet_type& a, const packet_type& exponent) { \
|
||||
return cl::sycl::ldexp( \
|
||||
a, exponent.template convert<cl::sycl::cl_int, \
|
||||
cl::sycl::rounding_mode::automatic>()); \
|
||||
}
|
||||
|
||||
SYCL_PLDEXP(cl::sycl::cl_float4)
|
||||
SYCL_PLDEXP(cl::sycl::cl_double2)
|
||||
#undef SYCL_PLDEXP
|
||||
|
||||
#endif
|
||||
|
||||
} // end namespace internal
|
||||
|
Loading…
x
Reference in New Issue
Block a user