summaryrefslogtreecommitdiff
path: root/lib/spack/env
diff options
context:
space:
mode:
authorFrank Willmore <frankwillmore@gmail.com>2020-10-29 16:52:54 -0500
committerGitHub <noreply@github.com>2020-10-29 16:52:54 -0500
commitc954d50998f6a223027d864c5e4f161e5b2e27f1 (patch)
tree8484e35164bda11cb41afa63833a72c992d49b1e /lib/spack/env
parent52959528a2cb7e7e9b213efd1243a078502ac708 (diff)
downloadspack-c954d50998f6a223027d864c5e4f161e5b2e27f1.tar.gz
spack-c954d50998f6a223027d864c5e4f161e5b2e27f1.tar.bz2
spack-c954d50998f6a223027d864c5e4f161e5b2e27f1.tar.xz
spack-c954d50998f6a223027d864c5e4f161e5b2e27f1.zip
Oneapi add compiler (#19330)
* enable flatcc to be built with gcc/9.X.X * add static option for building libyogrt * cleanup * Initial working version * rework new oneapi wrappers * tested and removed my initials from source * cleanup * Update __init__.py * remove whitespace * working now with mods for testing, detection. Detection for oneapi is working, but entry needs to be modified to add link path for libimf.so. Cleared cruft for old Intel versions * fixed some formatting * cleanup * flake8 cleanup * flake8 * fixed syntax of compiler version detection tests * fixed syntax of compiler version detection tests modified: detection.py * fix typo * fixes for compilers tests * remove erroneous tests for outdated -std= flags, remove ifx version check (output won't parse) Co-authored-by: Frank Willmore <willmore@anl.gov>
Diffstat (limited to 'lib/spack/env')
-rwxr-xr-xlib/spack/env/cc6
l---------lib/spack/env/oneapi/icpx1
l---------lib/spack/env/oneapi/icx1
l---------lib/spack/env/oneapi/ifx1
4 files changed, 6 insertions, 3 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index e826cabca4..f23b22775b 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|nvc|xlc|xlc_r|fcc)
+ cc|c89|c99|gcc|clang|armclang|icc|icx|pgcc|nvc|xlc|xlc_r|fcc)
command="$SPACK_CC"
language="C"
comp="CC"
lang_flags=C
;;
- c++|CC|g++|clang++|armclang++|icpc|pgc++|nvc++|xlc++|xlc++_r|FCC)
+ c++|CC|g++|clang++|armclang++|icpc|icpx|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|nvfortran|xlf90|xlf90_r|nagfor|frt)
+ ftn|f90|fc|f95|gfortran|flang|armflang|ifort|ifx|pgfortran|nvfortran|xlf90|xlf90_r|nagfor|frt)
command="$SPACK_FC"
language="Fortran 90"
comp="FC"
diff --git a/lib/spack/env/oneapi/icpx b/lib/spack/env/oneapi/icpx
new file mode 120000
index 0000000000..82c2b8e90a
--- /dev/null
+++ b/lib/spack/env/oneapi/icpx
@@ -0,0 +1 @@
+../cc \ No newline at end of file
diff --git a/lib/spack/env/oneapi/icx b/lib/spack/env/oneapi/icx
new file mode 120000
index 0000000000..82c2b8e90a
--- /dev/null
+++ b/lib/spack/env/oneapi/icx
@@ -0,0 +1 @@
+../cc \ No newline at end of file
diff --git a/lib/spack/env/oneapi/ifx b/lib/spack/env/oneapi/ifx
new file mode 120000
index 0000000000..82c2b8e90a
--- /dev/null
+++ b/lib/spack/env/oneapi/ifx
@@ -0,0 +1 @@
+../cc \ No newline at end of file