Skip to content

Commit

Permalink
ensure local.rc is created in the correct subdir for NVHPC v22.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
jfgrimm committed Mar 1, 2024
1 parent a2864e7 commit 7e30e28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easybuild/easyblocks/n/nvhpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def install_step(self):
sys.stdout.write(line)

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

0 comments on commit 7e30e28

Please sign in to comment.