From 96f446b375221d0fa504a3b0fa7c867e7efa6d50 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Tue, 22 Nov 2011 10:33:40 +0000 Subject: [PATCH] Added new platform hermit1. --- etc/platform-configs/hermit1/compiler/cray | 3 +++ etc/platform-configs/hermit1/compiler/gnu | 3 +++ etc/platform-configs/hermit1/compiler/pgi | 3 +++ etc/platform-configs/hermit1/compiler/system | 3 +++ sit | 3 +++ 5 files changed, 15 insertions(+) create mode 100644 etc/platform-configs/hermit1/compiler/cray create mode 100644 etc/platform-configs/hermit1/compiler/gnu create mode 100644 etc/platform-configs/hermit1/compiler/pgi create mode 100644 etc/platform-configs/hermit1/compiler/system diff --git a/etc/platform-configs/hermit1/compiler/cray b/etc/platform-configs/hermit1/compiler/cray new file mode 100644 index 0000000..c73804d --- /dev/null +++ b/etc/platform-configs/hermit1/compiler/cray @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=cc CXX=CC FC=ftn F90=ftn F77=ftn" +COMPILER_VERSION_CMD="cc -V 2>&1| awk '/Version/{ print \$5; }'" diff --git a/etc/platform-configs/hermit1/compiler/gnu b/etc/platform-configs/hermit1/compiler/gnu new file mode 100644 index 0000000..1f86edc --- /dev/null +++ b/etc/platform-configs/hermit1/compiler/gnu @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=cc CXX=CC FC=ftn F90=ftn F77=tfn" +COMPILER_VERSION_CMD="cc -dumpversion" diff --git a/etc/platform-configs/hermit1/compiler/pgi b/etc/platform-configs/hermit1/compiler/pgi new file mode 100644 index 0000000..af3e8a7 --- /dev/null +++ b/etc/platform-configs/hermit1/compiler/pgi @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=cc CXX=CC FC=ftn F90=ftn F77=ftn" +COMPILER_VERSION_CMD="cc -V 2> /dev/null | awk '/pgcc/{print \$2}' | sed -e 's/-/./'" diff --git a/etc/platform-configs/hermit1/compiler/system b/etc/platform-configs/hermit1/compiler/system new file mode 100644 index 0000000..50913ec --- /dev/null +++ b/etc/platform-configs/hermit1/compiler/system @@ -0,0 +1,3 @@ +#!/bin/bash +COMPILER_OPTS="CC=gcc CXX=g++ FC=gfortran F90=gfortran F77=gfortran" +COMPILER_VERSION_CMD="gcc -dumpversion" diff --git a/sit b/sit index 808fb3f..2ecdda2 100755 --- a/sit +++ b/sit @@ -23,6 +23,9 @@ case $HOSTNAME in cl3fr1|cl3fr2|imager) PLATFORM="laki" ;; + eslogin*) + PLATFORM="hermit1" + ;; *) sit_info "Unknown host '$HOSTNAME' using default platform '${DEFAULT_PLATFORM}' configuration" PLATFORM="${DEFAULT_PLATFORM}"