From 46e90692e829457b133521f7dc5c6d7c1f7502da Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 22 Apr 2020 15:47:14 -0500 Subject: PyTorch: add conflict for Apple Clang 11.0.3 (#16238) * PyTorch: add conflict for Apple Clang 11.0.3 * Flake8 fix --- var/spack/repos/builtin/packages/py-torch/package.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/py-torch/package.py b/var/spack/repos/builtin/packages/py-torch/package.py index 6428d6cb8e..f786ad14bc 100644 --- a/var/spack/repos/builtin/packages/py-torch/package.py +++ b/var/spack/repos/builtin/packages/py-torch/package.py @@ -52,7 +52,6 @@ class PyTorch(PythonPackage, CudaPackage): version('master', branch='master', submodules=True) version('1.5.0', tag='v1.5.0', submodules=True) version('1.4.1', tag='v1.4.1', submodules=True) - # see https://github.com/pytorch/pytorch/issues/35149 version('1.4.0', tag='v1.4.0', submodules=True, submodules_delete=['third_party/fbgemm']) version('1.3.1', tag='v1.3.1', submodules=True) @@ -104,8 +103,11 @@ class PyTorch(PythonPackage, CudaPackage): conflicts('+redis', when='@:1.0') conflicts('+zstd', when='@:1.0') conflicts('+tbb', when='@:1.1') - # see https://github.com/pytorch/pytorch/issues/35149 + # https://github.com/pytorch/pytorch/issues/35149 conflicts('+fbgemm', when='@1.4.0') + # https://github.com/pytorch/pytorch/issues/35478 + conflicts('%clang@11.0.3-apple', + msg='Apple Clang 11.0.3 segfaults at build-time') conflicts('cuda_arch=none', when='+cuda', msg='Must specify CUDA compute capabilities of your GPU, see ' -- cgit v1.2.3-60-g2f50