diff --git a/etc/platform-configs/hawk/compiler/aocc b/etc/platform-configs/hawk/compiler/aocc new file mode 100644 index 0000000..9307322 --- /dev/null +++ b/etc/platform-configs/hawk/compiler/aocc @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=clang CXX=clang++" +COMPILER_VERSION_CMD="llvm-config --version" diff --git a/etc/platform-configs/hawk/compiler/gnu b/etc/platform-configs/hawk/compiler/gnu new file mode 100644 index 0000000..a2c385d --- /dev/null +++ b/etc/platform-configs/hawk/compiler/gnu @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=gcc CXX=g++ F77=gfortran FC=gfortran" +COMPILER_VERSION_CMD="gcc -dumpversion" diff --git a/etc/platform-configs/hawk/compiler/intel b/etc/platform-configs/hawk/compiler/intel new file mode 100644 index 0000000..846d854 --- /dev/null +++ b/etc/platform-configs/hawk/compiler/intel @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=icc CXX=icpc F77=ifort FC=ifort" +COMPILER_VERSION_CMD="icc -dumpversion" diff --git a/etc/platform-configs/hawk/compiler/llwm b/etc/platform-configs/hawk/compiler/llwm new file mode 100644 index 0000000..9307322 --- /dev/null +++ b/etc/platform-configs/hawk/compiler/llwm @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=clang CXX=clang++" +COMPILER_VERSION_CMD="llvm-config --version" diff --git a/etc/platform-configs/hawk/compiler/pgi b/etc/platform-configs/hawk/compiler/pgi new file mode 100644 index 0000000..4891bef --- /dev/null +++ b/etc/platform-configs/hawk/compiler/pgi @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=pgcc CXX=pgCC FC=pgf95 F90=pgf90 F77=pgf77" +COMPILER_VERSION_CMD="pgcc -V | awk '/pgcc/{print \$2}' | sed -e 's/-/./'" diff --git a/etc/platform-configs/hawk/compiler/system b/etc/platform-configs/hawk/compiler/system new file mode 120000 index 0000000..9893768 --- /dev/null +++ b/etc/platform-configs/hawk/compiler/system @@ -0,0 +1 @@ +gnu \ No newline at end of file diff --git a/sit b/sit index e0d2ca9..5d4295b 100755 --- a/sit +++ b/sit @@ -141,6 +141,16 @@ else echo "Loading compiler module ${COMPILER_MODULE}" module load ${COMPILER_MODULE} ;; + hawk) + if [ -z "$COMPILER_VERSION" ] ; then + COMPILER_MODULE=${COMPILER} + else + COMPILER_MODULE=${COMPILER}/${COMPILER_VERSION} + fi + echo "Loading compiler module ${COMPILER_MODULE}" + module load ${COMPILER_MODULE} + ;; + ;; esac fi