Make bitwise_helper a device function to unbreak GPU builds.

This commit is contained in:
Rasmus Munk Larsen 2020-10-10 01:45:20 +00:00
parent 4e4d3f32d1
commit 9a4d04c05f

View File

@ -305,7 +305,7 @@ EIGEN_DEVICE_FUNC inline std::complex<RealScalar> ptrue(const std::complex<RealS
}
template <typename Packet, typename Op>
Packet bitwise_helper(const Packet& a, const Packet& b, Op op) {
EIGEN_DEVICE_FUNC inline Packet bitwise_helper(const Packet& a, const Packet& b, Op op) {
const unsigned char* a_ptr = reinterpret_cast<const unsigned char*>(&a);
const unsigned char* b_ptr = reinterpret_cast<const unsigned char*>(&b);
Packet c;