diff options
author | Scott McMillan <scott.andrew.mcmillan@gmail.com> | 2020-10-16 16:04:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 14:04:27 -0700 |
commit | a612be1c9883d6f2f41e227ca947ef9af9308cb2 (patch) | |
tree | bcae796bf4dd5e4014e916e902d7136f8660a834 /lib/spack/env | |
parent | 78f349c635e477bb846b24e55912b0df80070f6c (diff) | |
download | spack-a612be1c9883d6f2f41e227ca947ef9af9308cb2.tar.gz spack-a612be1c9883d6f2f41e227ca947ef9af9308cb2.tar.bz2 spack-a612be1c9883d6f2f41e227ca947ef9af9308cb2.tar.xz spack-a612be1c9883d6f2f41e227ca947ef9af9308cb2.zip |
New compiler: nvhpc (NVIDIA HPC SDK) (#19294)
* Add nvhpc compiler definition: "spack compiler add" will now look
for instances of the NVIDIA HPC SDK compiler executables
(nvc, nvc++, nvfortran) in supplied paths
* Add the nvhpc package which installs the nvhpc compiler
* Add testing for nvhpc detection and C++-standard/pic flags
Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
Diffstat (limited to 'lib/spack/env')
-rwxr-xr-x | lib/spack/env/cc | 6 | ||||
l--------- | lib/spack/env/nvhpc/nvc | 1 | ||||
l--------- | lib/spack/env/nvhpc/nvc++ | 1 | ||||
l--------- | lib/spack/env/nvhpc/nvfortran | 1 |
4 files changed, 6 insertions, 3 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index b5913c5f10..6de7df3576 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -107,19 +107,19 @@ case "$command" in cpp) mode=cpp ;; - cc|c89|c99|gcc|clang|armclang|icc|pgcc|xlc|xlc_r|fcc) + cc|c89|c99|gcc|clang|armclang|icc|pgcc|nvc|xlc|xlc_r|fcc) command="$SPACK_CC" language="C" comp="CC" lang_flags=C ;; - c++|CC|g++|clang++|armclang++|icpc|pgc++|xlc++|xlc++_r|FCC) + c++|CC|g++|clang++|armclang++|icpc|pgc++|nvc++|xlc++|xlc++_r|FCC) command="$SPACK_CXX" language="C++" comp="CXX" lang_flags=CXX ;; - ftn|f90|fc|f95|gfortran|flang|armflang|ifort|pgfortran|xlf90|xlf90_r|nagfor|frt) + ftn|f90|fc|f95|gfortran|flang|armflang|ifort|pgfortran|nvfortran|xlf90|xlf90_r|nagfor|frt) command="$SPACK_FC" language="Fortran 90" comp="FC" diff --git a/lib/spack/env/nvhpc/nvc b/lib/spack/env/nvhpc/nvc new file mode 120000 index 0000000000..82c2b8e90a --- /dev/null +++ b/lib/spack/env/nvhpc/nvc @@ -0,0 +1 @@ +../cc
\ No newline at end of file diff --git a/lib/spack/env/nvhpc/nvc++ b/lib/spack/env/nvhpc/nvc++ new file mode 120000 index 0000000000..82c2b8e90a --- /dev/null +++ b/lib/spack/env/nvhpc/nvc++ @@ -0,0 +1 @@ +../cc
\ No newline at end of file diff --git a/lib/spack/env/nvhpc/nvfortran b/lib/spack/env/nvhpc/nvfortran new file mode 120000 index 0000000000..82c2b8e90a --- /dev/null +++ b/lib/spack/env/nvhpc/nvfortran @@ -0,0 +1 @@ +../cc
\ No newline at end of file |