Skip to content

Commit

Permalink
do not use -g77 option when installing NVHPC 22.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianAchilles committed Jan 17, 2023
1 parent 0e39ea6 commit cf9f565
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 gfortran" % (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 cf9f565

Please sign in to comment.