From 848ab435a52731be481822937c0f5848b051c1ae Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 22 Mar 2023 03:06:42 -0500 Subject: [PATCH] py-torch: OpenMP support doesn't work on Apple Silicon (#36287) --- var/spack/repos/builtin/packages/py-torch/package.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/var/spack/repos/builtin/packages/py-torch/package.py b/var/spack/repos/builtin/packages/py-torch/package.py index 3db67197ee..6e10a09154 100644 --- a/var/spack/repos/builtin/packages/py-torch/package.py +++ b/var/spack/repos/builtin/packages/py-torch/package.py @@ -111,6 +111,9 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage): # https://github.com/pytorch/pytorch/issues/77811 conflicts("+qnnpack", when="platform=darwin target=aarch64:") + # https://github.com/pytorch/pytorch/issues/80805 + conflicts("+openmp", when="platform=darwin target=aarch64:") + conflicts( "cuda_arch=none", when="+cuda",