diff options
author | Chip-Kerchner <chip.kerchner@ibm.com> | 2021-02-24 20:43:23 -0600 |
---|---|---|
committer | Chip-Kerchner <chip.kerchner@ibm.com> | 2021-02-24 20:43:23 -0600 |
commit | 6eebe97babeb861cff713ec290ba9c7dec89b865 (patch) | |
tree | 4e2d57a0f407e701b8f6c781d002d1bfdd18ed18 /Eigen/src/Core/arch/AltiVec/MatrixProductMMA.h | |
parent | f284c8592b279d5e796842f662927c86c6bdc185 (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.h | 2 |
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 { |