diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2016-03-03 16:50:51 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2016-03-03 16:50:51 -0600 |
commit | 311d71ec86bc7e245520a816cee4053c31a8a086 (patch) | |
tree | 49de058fdeb0ba4a66f9f113ccbca479f986ac41 | |
parent | e5276856cb2f26b38187aec3cf4394958e8cf6db (diff) | |
download | spack-311d71ec86bc7e245520a816cee4053c31a8a086.tar.gz spack-311d71ec86bc7e245520a816cee4053c31a8a086.tar.bz2 spack-311d71ec86bc7e245520a816cee4053c31a8a086.tar.xz spack-311d71ec86bc7e245520a816cee4053c31a8a086.zip |
Modifications to get PGI working
-rwxr-xr-x | lib/spack/env/cc | 6 | ||||
l--------- | lib/spack/env/pgi/case-insensitive/pgCC | 1 | ||||
l--------- | lib/spack/env/pgi/pgc++ (renamed from lib/spack/env/pgi/pgf77) | 0 | ||||
l--------- | lib/spack/env/pgi/pgfortran (renamed from lib/spack/env/pgi/pgf90) | 0 | ||||
-rw-r--r-- | lib/spack/spack/compilers/pgi.py | 18 |
5 files changed, 12 insertions, 13 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index a323c48124..b8b6c86e01 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -90,15 +90,15 @@ case "$command" in command="$SPACK_CC" language="C" ;; - c++|CC|g++|clang++|icpc|pgCC|xlc++) + c++|CC|g++|clang++|icpc|pgc++|xlc++) command="$SPACK_CXX" language="C++" ;; - f90|fc|f95|gfortran|ifort|pgf90|xlf90|nagfor) + f90|fc|f95|gfortran|ifort|pgfortran|xlf90|nagfor) command="$SPACK_FC" language="Fortran 90" ;; - f77|gfortran|ifort|pgf77|xlf|nagfor) + f77|gfortran|ifort|pgfortran|xlf|nagfor) command="$SPACK_F77" language="Fortran 77" ;; diff --git a/lib/spack/env/pgi/case-insensitive/pgCC b/lib/spack/env/pgi/case-insensitive/pgCC deleted file mode 120000 index e2deb67f3b..0000000000 --- a/lib/spack/env/pgi/case-insensitive/pgCC +++ /dev/null @@ -1 +0,0 @@ -../../cc
\ No newline at end of file diff --git a/lib/spack/env/pgi/pgf77 b/lib/spack/env/pgi/pgc++ index 82c2b8e90a..82c2b8e90a 120000 --- a/lib/spack/env/pgi/pgf77 +++ b/lib/spack/env/pgi/pgc++ diff --git a/lib/spack/env/pgi/pgf90 b/lib/spack/env/pgi/pgfortran index 82c2b8e90a..82c2b8e90a 120000 --- a/lib/spack/env/pgi/pgf90 +++ b/lib/spack/env/pgi/pgfortran diff --git a/lib/spack/spack/compilers/pgi.py b/lib/spack/spack/compilers/pgi.py index 9ac74cfbdb..c6a1078bd9 100644 --- a/lib/spack/spack/compilers/pgi.py +++ b/lib/spack/spack/compilers/pgi.py @@ -29,28 +29,28 @@ class Pgi(Compiler): cc_names = ['pgcc'] # Subclasses use possible names of C++ compiler - cxx_names = ['pgCC'] + cxx_names = ['pgc++', 'pgCC'] # Subclasses use possible names of Fortran 77 compiler - f77_names = ['pgf77'] + f77_names = ['pgfortran', 'pgf77'] # Subclasses use possible names of Fortran 90 compiler - fc_names = ['pgf95', 'pgf90'] + fc_names = ['pgfortran', 'pgf95', 'pgf90'] # Named wrapper links within spack.build_env_path link_paths = { 'cc' : 'pgi/pgcc', - 'cxx' : 'pgi/case-insensitive/pgCC', - 'f77' : 'pgi/pgf77', - 'fc' : 'pgi/pgf90' } + 'cxx' : 'pgi/pgc++', + 'f77' : 'pgi/pgfortran', + 'fc' : 'pgi/pgfortran' } @classmethod def default_version(cls, comp): """The '-V' option works for all the PGI compilers. Output looks like this:: - pgf95 10.2-0 64-bit target on x86-64 Linux -tp nehalem-64 - Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. - Copyright 2000-2010, STMicroelectronics, Inc. All Rights Reserved. + pgcc 15.10-0 64-bit target on x86-64 Linux -tp sandybridge + The Portland Group - PGI Compilers and Tools + Copyright (c) 2015, NVIDIA CORPORATION. All rights reserved. """ return get_compiler_version( comp, '-V', r'pg[^ ]* ([^ ]+) \d\d\d?-bit target') |