Skip to content

Commit

Permalink
To set DEFCUDAVERSION and DEFSTDPARCOMPUTECAP correctly in localrc
Browse files Browse the repository at this point in the history
  • Loading branch information
damianam committed Jul 8, 2024
1 parent 064e3e2 commit 66d5247
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion easybuild/easyblocks/n/nvhpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ def install_step(self):

if LooseVersion(self.version) >= LooseVersion('22.9'):
bin_subdir = os.path.join(compilers_subdir, "bin")
cmd = "%s -x %s" % (makelocalrc_filename, bin_subdir)
cmd = "%s -x %s -cuda %s -stdpar %s" % (makelocalrc_filename,
bin_subdir,
default_cuda_version,
default_compute_capability)
else:
cmd = "%s -x %s -g77 /" % (makelocalrc_filename, compilers_subdir)
run_cmd(cmd, log_all=True, simple=True)
Expand Down

0 comments on commit 66d5247

Please sign in to comment.