summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-10-05 12:38:21 -0500
committerGitHub <noreply@github.com>2022-10-05 12:38:21 -0500
commitd956da95c3ef8cfb3d13333ce0e99a0a3195279e (patch)
treec80c6f5838d61871871c0183cd14cd8655e8e57c
parent4ed963dda1d1b66c1be9e3b168613b24c72e32f4 (diff)
downloadspack-d956da95c3ef8cfb3d13333ce0e99a0a3195279e.tar.gz
spack-d956da95c3ef8cfb3d13333ce0e99a0a3195279e.tar.bz2
spack-d956da95c3ef8cfb3d13333ce0e99a0a3195279e.tar.xz
spack-d956da95c3ef8cfb3d13333ce0e99a0a3195279e.zip
py-torch-nvidia-apex: ~cuda does not build (#32939)
-rw-r--r--var/spack/repos/builtin/packages/py-torch-nvidia-apex/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-torch-nvidia-apex/package.py b/var/spack/repos/builtin/packages/py-torch-nvidia-apex/package.py
index ca91302ed7..a0ac3fe60f 100644
--- a/var/spack/repos/builtin/packages/py-torch-nvidia-apex/package.py
+++ b/var/spack/repos/builtin/packages/py-torch-nvidia-apex/package.py
@@ -25,6 +25,9 @@ class PyTorchNvidiaApex(PythonPackage, CudaPackage):
variant("cuda", default=True, description="Build with CUDA")
+ # https://github.com/NVIDIA/apex/issues/1498
+ conflicts("~cuda")
+
def setup_build_environment(self, env):
if "+cuda" in self.spec:
env.set("CUDA_HOME", self.spec["cuda"].prefix)
@@ -35,7 +38,7 @@ class PyTorchNvidiaApex(PythonPackage, CudaPackage):
)
env.set("TORCH_CUDA_ARCH_LIST", torch_cuda_arch)
- def install_options(self, spec, prefix):
+ def global_options(self, spec, prefix):
args = []
if spec.satisfies("^py-torch@1.0:"):
args.append("--cpp_ext")