Skip to content

Commit 830abc6

Browse files
authored
Merge pull request #2026 from jjotero/bugfix/cuda_samples
[test] Update checkout version of the `cuda-samples` repo
2 parents de03115 + 3661d04 commit 830abc6

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

cscs-checks/microbenchmarks/gpu/hooks.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ def set_gpu_arch(self):
2424
else:
2525
self.modules = ['cdt-cuda/21.05']
2626

27-
if cs == 'dom':
28-
self.modules += ['cudatoolkit/11.1.0_3.39-4.1__g484e319']
29-
3027
elif cs in {'arola', 'tsa'}:
3128
self.gpu_arch = '70'
3229
self.modules = ['cuda/10.1.243']

cscs-checks/prgenv/cuda/cuda_samples.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,16 @@ def set_build_options(self):
5353
self.build_system.options = [
5454
f'SMS="{self.gpu_arch}"', f'CUDA_PATH=$CUDA_HOME'
5555
]
56+
cs = self.current_system.name
57+
ce = self.current_environ.name
58+
if cs == 'dom' and ce == 'PrgEnv-nvidia':
59+
cuda_ver = 'v11.3-6-g95b7cea'
60+
else:
61+
cuda_ver = 'v11.0'
62+
5663
self.prebuild_cmds = [
57-
f'git checkout v11.0', f'cd Samples/{self.sample}'
64+
f'git checkout {cuda_ver}',
65+
f'cd Samples/{self.sample}'
5866
]
5967

6068
@run_before('run')

0 commit comments

Comments
 (0)