use TARGET=VORTEX for Apple M2 skipping all the logic

This commit is contained in:
Alberto Invernizzi 2023-05-03 11:18:42 +02:00
parent 11aa2d721e
commit 91d17f191f

View File

@ -295,6 +295,12 @@ def _microarch_target_args(self):
skylake = set(["skylake", "skylake_avx512"])
available_targets = set(available_targets) | skylake | openblas_arch
# Apple M2
# https://github.com/xianyi/OpenBLAS/issues/3995#issuecomment-1503592445
if microarch.name == "m2":
args.append("TARGET=VORTEX")
return args
# Find closest ancestor that is known to build in blas
if microarch.name not in available_targets:
for microarch in microarch.ancestors: