py-torch: OpenMP support doesn't work on Apple Silicon (#36287)

This commit is contained in:
Adam J. Stewart 2023-03-22 03:06:42 -05:00 committed by GitHub
parent 2418bf446d
commit 848ab435a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,6 +111,9 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
# https://github.com/pytorch/pytorch/issues/77811 # https://github.com/pytorch/pytorch/issues/77811
conflicts("+qnnpack", when="platform=darwin target=aarch64:") conflicts("+qnnpack", when="platform=darwin target=aarch64:")
# https://github.com/pytorch/pytorch/issues/80805
conflicts("+openmp", when="platform=darwin target=aarch64:")
conflicts( conflicts(
"cuda_arch=none", "cuda_arch=none",
when="+cuda", when="+cuda",