summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
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: