diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-10-10 01:45:20 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-10-10 01:45:20 +0000 |
commit | 9a4d04c05fbaad6e6de750b13cfeab9edeb71c90 (patch) | |
tree | ccfb080fce8cc0e7aabed4dc27286064fcae203e /Eigen/src/Core/GenericPacketMath.h | |
parent | 4e4d3f32d168ed9ce09d950f099a60ddcd11240f (diff) |
Make bitwise_helper a device function to unbreak GPU builds.
Diffstat (limited to 'Eigen/src/Core/GenericPacketMath.h')
-rw-r--r-- | Eigen/src/Core/GenericPacketMath.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/GenericPacketMath.h b/Eigen/src/Core/GenericPacketMath.h index 3c5810901..32cedd0b1 100644 --- a/Eigen/src/Core/GenericPacketMath.h +++ b/Eigen/src/Core/GenericPacketMath.h @@ -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; |