mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-17 22:25:55 +08:00
Fix supportsMMA to obey EIGEN_ALTIVEC_MMA_DYNAMIC_DISPATCH compilation flag and compiler support.
This commit is contained in:
parent
bc57b926a0
commit
3791ac8a1a
@ -2714,10 +2714,10 @@ EIGEN_ALWAYS_INLINE bool supportsMMA()
|
|||||||
#if defined(EIGEN_ALTIVEC_MMA_ONLY)
|
#if defined(EIGEN_ALTIVEC_MMA_ONLY)
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
#if EIGEN_COMP_LLVM
|
#if defined(EIGEN_ALTIVEC_MMA_DYNAMIC_DISPATCH) && __has_builtin(__builtin_cpu_supports)
|
||||||
return false; // No dynamic dispatch for LLVM
|
|
||||||
#else
|
|
||||||
return __builtin_cpu_supports ("arch_3_1") && __builtin_cpu_supports ("mma");
|
return __builtin_cpu_supports ("arch_3_1") && __builtin_cpu_supports ("mma");
|
||||||
|
#else
|
||||||
|
return false; // No dynamic dispatch for LLVM
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user