Skip to content

Modifications to get PGI working#493

Merged
tgamblin merged 1 commit intospack:developfrom
adamjstewart:features/pgi
Mar 5, 2016
Merged

Modifications to get PGI working#493
tgamblin merged 1 commit intospack:developfrom
adamjstewart:features/pgi

Conversation

@adamjstewart
Copy link
Copy Markdown
Member

I was having trouble installing HDF4 with PGI compilers. If you take a look at this discussion you'll see the exact problem that was occurring for me. The HDF4 configure script only accepts the F77 environment variable, not FC. But somehow, some F90 code slipped in there, and HDF4 cannot be compiled with a purely F77 Fortran compiler. The suggestion posted by PGI is to use the pgfortran compiler, which compiles both F77 and F90 code.

If you take a look at the latest PGI Installation Guide you'll see that PGI actually recommends using pgc++, and pgfortran instead of the older pgCC, pgf77, and pgf90 compilers. Older versions of PGI don't seem to have pgCC, so I left it in the list of cxx_names for backwards compatibility.

The last stumbling block left is auto-detection. When I run:

spack compiler add /path/to/compiler

it still finds pgCC, pgf77, and pgf90. Is spack compiler add not setup to prefer the first executable it finds in cxx_names, f77_names, and fc_names?

@tgamblin
Copy link
Copy Markdown
Member

tgamblin commented Mar 5, 2016

Looks good. This is also consistent with how things like gfortran are used.

tgamblin added a commit that referenced this pull request Mar 5, 2016
Modifications to get PGI working
@tgamblin tgamblin merged commit 097df18 into spack:develop Mar 5, 2016
@adamjstewart
Copy link
Copy Markdown
Member Author

@tgamblin: Any thoughts on the auto-detection problem? I would like it to default to pgc++ and pgfortran but it still auto-detects pgCC, pgf77, and pgf90. I had to manually spack config edit compilers to correct it.

@adamjstewart adamjstewart deleted the features/pgi branch March 8, 2016 18:10
matz-e added a commit to matz-e/spack that referenced this pull request Apr 27, 2020
greenc-FNAL added a commit to greenc-FNAL/spack that referenced this pull request Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants