PyTorch: add conflict for Apple Clang 11.0.3 (#16238)

* PyTorch: add conflict for Apple Clang 11.0.3

* Flake8 fix
This commit is contained in:
Adam J. Stewart 2020-04-22 15:47:14 -05:00 committed by GitHub
parent 0d2ebbf996
commit 46e90692e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 '