mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Fix CUDA build on Mac.
This commit is contained in:
parent
988f24b730
commit
b5237f53b1
@ -313,7 +313,7 @@ EIGEN_STRONG_INLINE __device__ bool operator >= (const half& a, const half& b) {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(EIGEN_HAS_NATIVE_FP16) || EIGEN_COMP_CLANG // Emulate support for half floats
|
#if !defined(EIGEN_HAS_NATIVE_FP16) || (EIGEN_COMP_CLANG && !EIGEN_COMP_NVCC) // Emulate support for half floats
|
||||||
|
|
||||||
#if EIGEN_COMP_CLANG && defined(EIGEN_CUDACC)
|
#if EIGEN_COMP_CLANG && defined(EIGEN_CUDACC)
|
||||||
// We need to provide emulated *host-side* FP16 operators for clang.
|
// We need to provide emulated *host-side* FP16 operators for clang.
|
||||||
|
@ -102,7 +102,7 @@ template<> EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE double2 pset1<double2>(const do
|
|||||||
return make_double2(from, from);
|
return make_double2(from, from);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(EIGEN_CUDA_ARCH) || defined(EIGEN_HIP_DEVICE_COMPILE) || (defined(EIGEN_CUDACC) && EIGEN_COMP_CLANG)
|
#if defined(EIGEN_CUDA_ARCH) || defined(EIGEN_HIP_DEVICE_COMPILE) || (defined(EIGEN_CUDACC) && EIGEN_COMP_CLANG && !EIGEN_COMP_NVCC)
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float bitwise_and(const float& a,
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE float bitwise_and(const float& a,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user