summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorValentin Volkl <valentin.volkl@cern.ch>2022-05-19 17:18:18 +0200
committerGitHub <noreply@github.com>2022-05-19 17:18:18 +0200
commita0fe6ab2edd2f881181d1361f5d55f6c1e5c16ff (patch)
treeafa13203d7d25c3feb095a363eef3052a9fb7780 /var
parentc3be777ea8387f27c58db0d19f96758837df36fc (diff)
downloadspack-a0fe6ab2edd2f881181d1361f5d55f6c1e5c16ff.tar.gz
spack-a0fe6ab2edd2f881181d1361f5d55f6c1e5c16ff.tar.bz2
spack-a0fe6ab2edd2f881181d1361f5d55f6c1e5c16ff.tar.xz
spack-a0fe6ab2edd2f881181d1361f5d55f6c1e5c16ff.zip
cuda: use stage dir instead of /tmp during install (#29584)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cuda/package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/cuda/package.py b/var/spack/repos/builtin/packages/cuda/package.py
index e6a1983c66..0458d77599 100644
--- a/var/spack/repos/builtin/packages/cuda/package.py
+++ b/var/spack/repos/builtin/packages/cuda/package.py
@@ -128,7 +128,7 @@ _versions = {
'6.5.14': {
'Linux-x86_64': ('f3e527f34f317314fe8fcd8c85f10560729069298c0f73105ba89225db69da48', 'https://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda_6.5.14_linux_64.run')},
'6.0.37': {
- 'Linux-x86_64': ('991e436c7a6c94ec67cf44204d136adfef87baa3ded270544fa211179779bc40', '//developer.download.nvidia.com/compute/cuda/6_0/rel/installers/cuda_6.0.37_linux_64.run')},
+ 'Linux-x86_64': ('991e436c7a6c94ec67cf44204d136adfef87baa3ded270544fa211179779bc40', 'https://developer.download.nvidia.com/compute/cuda/6_0/rel/installers/cuda_6.0.37_linux_64.run')},
}
@@ -247,6 +247,11 @@ class Cuda(Package):
'--toolkit', # install CUDA Toolkit
]
+ if spec.satisfies('@7:'):
+ # use stage dir instead of /tmp
+ mkdir(join_path(self.stage.path, 'tmp'))
+ arguments.append('--tmpdir=%s' % join_path(self.stage.path, 'tmp'))
+
if spec.satisfies('@10.1:'):
arguments.append('--installpath=%s' % prefix) # Where to install
else: