Skip to content

Commit d4ebe98

Browse files
committed
Add CUDA_HOME for cuda-aware check
1 parent 830abc6 commit d4ebe98

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cscs-checks/prgenv/cuda/cuda_aware_mpi.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ def set_valid_prog_environs(self):
4747
def set_compilers(self):
4848
if self.current_environ.name == 'PrgEnv-pgi':
4949
self.build_system.cflags = ['-std=c99', ' -O3']
50+
elif self.current_environ.name == 'PrgEnv-nvidia':
51+
self.variables = {
52+
'CUDA_HOME': '/opt/nvidia/hpc_sdk/Linux_x86_64/21.3/cuda'
53+
}
5054

5155
gcd_flgs = (
5256
'-gencode arch=compute_{0},code=sm_{0}'.format(self.gpu_arch)

0 commit comments

Comments
 (0)