aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
diff options
context:
space:
mode:
authorGravatar Chip-Kerchner <chip.kerchner@ibm.com>2021-02-24 20:43:23 -0600
committerGravatar Chip-Kerchner <chip.kerchner@ibm.com>2021-02-24 20:43:23 -0600
commit6eebe97babeb861cff713ec290ba9c7dec89b865 (patch)
tree4e2d57a0f407e701b8f6c781d002d1bfdd18ed18 /Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
parentf284c8592b279d5e796842f662927c86c6bdc185 (diff)
Fix clang compile when no MMA flags are set. Simplify MMA compiler detection.
Diffstat (limited to 'Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h')
-rw-r--r--Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
index bfee9ee92..37db1a6f1 100644
--- a/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
+++ b/Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h
@@ -12,9 +12,11 @@
#pragma GCC target("cpu=power10")
+#ifdef __has_builtin
#if !__has_builtin(__builtin_vsx_assemble_pair)
#define __builtin_vsx_assemble_pair __builtin_mma_assemble_pair
#endif
+#endif
namespace Eigen {