Skip to content

Commit ffe436e

Browse files
committed
fix dummy module for NVHPC
1 parent 4b74510 commit ffe436e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/build_tools/hooks_hydra.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ def parse_hook(ec, *args, **kwargs): # pylint: disable=unused-argument
371371
ec['dependencies'] = []
372372
# inject error message in module file
373373
ec['modluafooter'] = GPU_DUMMY_MOD_FOOTER
374+
# workaround for NVHPC
375+
if ec.name == 'NVHPC':
376+
ec['default_cuda_version'] = '0'
374377
# module_only steps: [MODULE_STEP, PREPARE_STEP, READY_STEP, POSTITER_STEP, SANITYCHECK_STEP]
375378
ec['module_only'] = True
376379
ec.log.info(f"[parse hook] Set parameter module_only: {ec['module_only']}")

0 commit comments

Comments
 (0)