Skip to content

Commit

Permalink
Merge pull request #2819 from SebastianAchilles/20221027162625_new_pr…
Browse files Browse the repository at this point in the history
…_nvhpc

do not use -g77 option when installing NVHPC 22.9+
  • Loading branch information
boegel authored Jan 18, 2023
2 parents 8cb0d20 + cf9f565 commit c93dda1
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 @@ -164,7 +164,10 @@ def install_step(self):
line = re.sub(r"^PATH=/", r"#PATH=/", line)
sys.stdout.write(line)

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

# If an OS libnuma is NOT found, makelocalrc creates symbolic links to libpgnuma.so
Expand Down

0 comments on commit c93dda1

Please sign in to comment.