From 2ca6319117cffa49e90674a3ee8feb53ceca2fae Mon Sep 17 00:00:00 2001 From: kgerheiser Date: Fri, 26 Jun 2020 10:51:36 -0400 Subject: [PATCH 1/3] Update version in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 12ec8a56..c4fe834b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ make install ### Version -2.1.0 +2.2.0 ### Authors From 023dd19bd97da614493cdbb8215bcabb779329e9 Mon Sep 17 00:00:00 2001 From: kgerheiser Date: Fri, 26 Jun 2020 15:18:40 -0400 Subject: [PATCH 2/3] Remove make build --- Conf/Analyse_args.sh | 50 ---------------- Conf/Collect_info.sh | 107 ---------------------------------- Conf/Gen_cfunction.sh | 91 ----------------------------- Conf/Reset_version.sh | 18 ------ Conf/Sp_gnu_General.sh | 38 ------------ Conf/Sp_intel_Cray.sh | 30 ---------- Conf/Sp_intel_Dell.sh | 30 ---------- Conf/Sp_intel_Gaea.sh | 30 ---------- Conf/Sp_intel_General.sh | 38 ------------ Conf/Sp_intel_Hera.sh | 34 ----------- Conf/Sp_intel_Jet.sh | 30 ---------- Conf/Sp_intel_Theia.sh | 30 ---------- Conf/Sp_intel_Wcoss.sh | 30 ---------- build_sp.sh | 122 --------------------------------------- src/Makefile | 48 --------------- 15 files changed, 726 deletions(-) delete mode 100644 Conf/Analyse_args.sh delete mode 100644 Conf/Collect_info.sh delete mode 100644 Conf/Gen_cfunction.sh delete mode 100644 Conf/Reset_version.sh delete mode 100644 Conf/Sp_gnu_General.sh delete mode 100644 Conf/Sp_intel_Cray.sh delete mode 100644 Conf/Sp_intel_Dell.sh delete mode 100644 Conf/Sp_intel_Gaea.sh delete mode 100644 Conf/Sp_intel_General.sh delete mode 100644 Conf/Sp_intel_Hera.sh delete mode 100644 Conf/Sp_intel_Jet.sh delete mode 100644 Conf/Sp_intel_Theia.sh delete mode 100644 Conf/Sp_intel_Wcoss.sh delete mode 100755 build_sp.sh delete mode 100644 src/Makefile diff --git a/Conf/Analyse_args.sh b/Conf/Analyse_args.sh deleted file mode 100644 index ab86a5ab..00000000 --- a/Conf/Analyse_args.sh +++ /dev/null @@ -1,50 +0,0 @@ - if (( $# == 0 )); then - echo "*** Usage: $0 dell|cray|phase1/2|theia|hera|gaea|jet|intel_general|gnu_general libver= [debug] [compileonly] [prefix=]" >&2 - exit 1 - fi - sys=${1,,} - [[ $sys == dell || $sys == cray || $sys == phase1/2 || \ - $sys == theia || $sys == hera || $sys == gaea || $sys == jet || \ - $sys == intel_general || $sys == gnu_general ]] || { - echo "*** Usage: $0 dell|cray|phase1/2|theia|hera|gaea|jet|intel_general|gnu_general libver= [debug] [compileonly] [prefix=]" >&2 - exit 1 - } - [[ $sys == phase1/2 ]] && sys=wcoss - - debg=false - inst=true - rinst=false - local=true - instloc="---" - (( nrinst = 0 )) - (( nconfm = 0 )) - for n in 2 3 4; do - if (( $# > (n-1) )); then - [[ ${!n,,} == debug ]] && debg=true - [[ ${!n,,} == compileonly ]] && inst=false - [[ ${!n,,} == libver=* ]] && libver=${!n:$(expr length "libver=")} - [[ ${!n,,} == prefix=* ]] && { - local=false - instloc=${!n:$(expr length "prefix=")} - [[ $instloc == /* ]] || { [[ -n $CDIR ]] && instloc=$CDIR/$instloc; } - } - [[ ${!n,,} == install ]] && (( nrinst = n )) - [[ ${!n,,} == confirm:yes ]] && (( nconfm = n-1 )) - fi - done - (( nrinst > 0 && nconfm == 0 )) && { - echo "*** Info: ignore unsupported option \"install\" ***" - (( nrinst = 0 )) - } - (( nrinst == 0 && nconfm > 0 )) && { - echo "*** Info: ignore \"confirm:YES\"; must be present along with \"install\" ***" - (( nrinst = 0 )) - } - (( nconfm > 0 && ! nrinst == nconfm )) && { - echo "*** Info: ignore \"confirm:YES\"; must be present immediately after \"install\" ***" - (( nrinst = 0 )) - } - (( nconfm > 0 && nrinst == nconfm )) && rinst=true - - $rinst && { local=false; inst=true; } - diff --git a/Conf/Collect_info.sh b/Conf/Collect_info.sh deleted file mode 100644 index 92ba14ab..00000000 --- a/Conf/Collect_info.sh +++ /dev/null @@ -1,107 +0,0 @@ - collect_info() { - local setx_status=${-//[^x]/} - [[ -n $setx_status ]] && set +x - - local lname=$1 - local precsn=$2 - local msgline=$3 - local msginfo=$4 - - local info - local oneline - - USEMPI=false - grep -i mpi <<< "$COMP" &> /dev/null && USEMPI=true - -# libver=${lname~~}_VER - [[ $precsn == "-" ]] && { - cflg=CFLAGS - fflg=FFLAGS - libfile=${lname}Lib - NCLIBVER="${lname,,} (${lname~~}) ${!libver}" - } || { - cflg=CFLAGS${precsn%/*} - [[ -z "${!cflg}" ]] && cflg=CFLAGS - fflg=FFLAGS${precsn%/*} - libfile=${lname}Lib${precsn#*/} - NCLIBVER="${lname,,} (${lname~~} _${precsn%/*}) ${!libver}" - } - mpicflg=MPI"$cflg" - mpifflg=MPI"$fflg" - - $USEMPI && mpiver=$(mpirun --version | grep Version | sed 's/://' | \ - tr -s " " | sed 's/^.* Version //; s/ Build.*$//') - - COMPILED="compiled by" - $CC --version | grep " (ICC) " &> /dev/null && - $FC --version | grep " (IFORT) " &> /dev/null && { - ccstr=$($CC --version | grep " (ICC) ") - cfstr=$($FC --version | grep " (IFORT) ") - COMPILER="${ccstr/(ICC)*/(ICC)}, $cfstr" - } || { - $CC --version | grep " (.*GCC.*) " &> /dev/null && - $FC --version | grep " (.*GCC.*) " &> /dev/null && { - ccstr=$($CC --version | grep " (.*GCC.*) ") - cfstr=$($FC --version | grep " (.*GCC.*) ") - COMPILER="${ccstr/ (*GCC*)*/}, $cfstr" - } || { - ccstr=$($CC --version | grep -E 'ICC|GCC') - cfstr=$($FC --version | grep -E 'IFORT|GCC') - COMPILER="$ccstr, $cfstr" - } - } - [[ -z "$USECC" || ${USECC,,} == no ]] && { COMPILER="$cfstr"; } - [[ -z "$USEFC" || ${USEFC,,} == no ]] && { COMPILER="$ccstr"; } - - $USEMPI && { COMPILER=" $COMPILER"; } - (( ${#COMPILER} > 50 )) && COMPILER=${COMPILER% (*)*} - - DATETIME="$(date +'on %x at %X')" - - oneline="nclibver = '$NCLIBVER'," - oneline="$oneline"$'\n'"compiled = ' $COMPILED'," - oneline="$oneline"$'\n'"compiler = ' $COMPILER'," - oneline="$oneline"$'\n'"datetime = ' $DATETIME'" - - info="*** ${lname} information ***" - info=$info$'\n'"LIBRARY NAME: ${lname~~}" - info=$info$'\n'"LIBRARY VERSION: ${!libver}" - [[ $precsn != "-" ]] && { - info=$info$'\n'"LIBRARY PRECISION: (_${precsn%/*})" - } - info=$info$'\n'"LIBRARY FILE NAME: ${!libfile}" - info=$info$'\n'"*** building information ***" - info=$info$'\n'"BUILDING TIME: $(date)" - info=$info$'\n'"SYSTEM/PLATFORM: $(uname -srm)" - [[ -n "$USECC" && ${USECC,,} != no ]] && { - $USEMPI && { - info=$info$'\n'"C COMPILER NAME: $MPICC" - info=$info$'\n'"C COMPILER VERSION: $($MPICC --version | head -1)" - info=$info$'\n'"MPICFLAGS: "${!mpicflg} - } || { - info=$info$'\n'"C COMPILER NAME: $CC" - info=$info$'\n'"C COMPILER VERSION: $($CC --version | head -1)" - info=$info$'\n'"CFLAGS: "${!cflg} - } - } - [[ -n "$USEFC" && ${USEFC,,} != no ]] && { - $USEMPI && { - info=$info$'\n'"FORTRAN COMPILER NAME: $MPIFC" - info=$info$'\n'"FORTRAN COMPILER VERSION: $($MPIFC --version | head -1)" - info=$info$'\n'"MPIFFLAGS: "${!mpifflg} - } || { - info=$info$'\n'"FORTRAN COMPILER NAME: $FC" - info=$info$'\n'"FORTRAN COMPILER VERSION: $($FC --version | head -1)" - info=$info$'\n'"FFLAGS: "${!fflg} - } - } - - $USEMPI && { info=$info$'\n'"MPI VERSION: $mpiver"; } - - [[ -n "$DEPS" ]] && { info=$info$'\n'"DEPENDENCES: $DEPS"; } - - eval $msgline="\"$oneline\"" - eval $msginfo="\"$info\"" - - [[ -n $setx_status ]] && set -x - } diff --git a/Conf/Gen_cfunction.sh b/Conf/Gen_cfunction.sh deleted file mode 100644 index 1428829c..00000000 --- a/Conf/Gen_cfunction.sh +++ /dev/null @@ -1,91 +0,0 @@ - gen_cfunction() { - local setx_status=${-//[^x]/} - [[ -n $setx_status ]] && set +x - - logFILE=$1 - oneLINE=$2 - libINFO=$3 - LIB=$(echo "${!libINFO}" | \ - grep "LIBRARY FILE NAME: " | \ - sed -e 's/LIBRARY FILE NAME: //') - [[ $LIB == lib*.a ]] || { - echo "??? gen_cfunction: unknown library name ($LIB) ???" >&2 - exit -1 - } - libNAME=$(echo ${LIB:3} | \ - sed -e 's/^\(.*\)_v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+.*$/\1/') - cFunFILE=$(basename ${logFILE} .txt).c - oFunFILE=${cFunFILE/%.c/.o} - brfFunct=${libNAME}_brief_info - libFunct=${libNAME}_library_info - logFunct=${libNAME}_building_log - - cat << EOI > $cFunFILE -#include -#include -#include -#include - char *${brfFunct}(char *infoline); - int ${libFunct}(void); - int ${logFunct}(void); - static void tprintf(const char *str); - void ${brfFunct}_(char *oneline, size_t n) { - char infoline[256]; - ${brfFunct}(infoline); - strncpy(oneline, infoline, n); - return; - } - void ${libFunct}_(void) { - ${libFunct}(); - return; - } - void ${logFunct}_(void) { - ${logFunct}(); - return; - } - char *${brfFunct}(char *infoline) { - $(sed -e '1,$ s/^\(.*\) = '\''\(.*\)'\'',\?$/ const char \1[] = "\2";/g' <<< "${!oneLINE}") - infoline[0] = '\0'; - strcat(infoline, nclibver); - strcat(infoline, compiled); - strcat(infoline, compiler); - strcat(infoline, datetime); - return infoline; - } - int ${libFunct}(void) { -$(sed -e 's/^/ tprintf("/g; 1,$ s/$/");/g' <<< "${!libINFO}") - return 0; - } - int ${logFunct}(void) { - printf("... building log ...\n"); -$(sed -e 's/"/\\"/g; 1,$ s/%/%%/g; 1,$ s/^/ printf("/g; 1,$ s/$/\\n");/g' $logFILE) - return 0; - } - static void tprintf(const char *str) { - const char *boldon = "\e[1m"; - const char *boldoff = "\e[0m"; - char *str1 = strdup(str); - char *temp = strstr(str1, ": "); //Get the pointer to substr token - if (temp) { - temp += 2; - char *str2 = strdup(temp); - *temp = '\0'; - if (isatty(STDOUT_FILENO)) { - printf("%s%s%s%s\n", boldon, str1, boldoff, str2); - free(str2); - free(str1); - return; - } - free(str2); - } - free(str1); - printf("%s\n", str); - return; - } -EOI - - rm $logFILE - echo $cFunFILE - - [[ -n $setx_status ]] && set -x - } diff --git a/Conf/Reset_version.sh b/Conf/Reset_version.sh deleted file mode 100644 index 6d8bff57..00000000 --- a/Conf/Reset_version.sh +++ /dev/null @@ -1,18 +0,0 @@ - reset_version() { - local setx_status=${-//[^x]/} - [[ -n $setx_status ]] && set +x - (( $# == 2 )) && { - local var=$1 - local ver_name=${var^^}_VER - local old_ver=${!ver_name} - local new_ver=$2 - } || { - local var=$1 - local old_ver=$2 - local new_ver=$3 - } - for vline in "$(env | grep ${var^^})"; do - eval ${vline//${old_ver}/${new_ver}} - done - [[ -n $setx_status ]] && set -x - } diff --git a/Conf/Sp_gnu_General.sh b/Conf/Sp_gnu_General.sh deleted file mode 100644 index 394253e7..00000000 --- a/Conf/Sp_gnu_General.sh +++ /dev/null @@ -1,38 +0,0 @@ -# *** manually set environments (for gnu compiler) of sp *** - - : ${USERMODE:=false} # user mode (USERMODE) is closed by default - # set env var USERMODE to "true" to active it - ${USERMODE} && { - echo "Environment set by user" -# On theia/cray, user can load environment - module load gcc/6.2.0 - } - - export CC=gcc - export FC=gfortran - export CPP=cpp - export OMPCC="$CC -fopenmp" - export OMPFC="$FC -fopenmp" - export MPICC=mpigcc - export MPIFC=mpigfortran - - export DEBUG="-g -fbacktrace -O0" - export CFLAGS="-g -O3 -fPIC" - export FFLAGS="-g -fbacktrace -O3 -fconvert=big-endian -fPIC" - export FREEFORM="-ffree-form" - export FPPCPP="-cpp" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -fPIC" - export MPIFFLAGS="-g -fbacktrace -O3 -fconvert=big-endian -fPIC" - export MODPATH="-J" - export I4R4="" - export I4R8="-fdefault-real-8" - export I8R8="-fdefault-integer-8 -fdefault-real-8" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="-DLINUX" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Sp_intel_Cray.sh b/Conf/Sp_intel_Cray.sh deleted file mode 100644 index 7b5491fb..00000000 --- a/Conf/Sp_intel_Cray.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for WCOSS Cray (intel) *** - - export CC=cc - export FC=ftn - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=$CC - export MPIFC=$FC - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -traceback -O3 -axCORE-AVX2 -fPIC" - export FFLAGS="-g -traceback -O3 -axCORE-AVX2 -auto -convert big_endian -assume byterecl -fp-model strict -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS=$CFLAGS - export MPIFFLAGS=$FFLAGS - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="-DLINUX" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Sp_intel_Dell.sh b/Conf/Sp_intel_Dell.sh deleted file mode 100644 index 1c5dddbf..00000000 --- a/Conf/Sp_intel_Dell.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for WCOSS Dell (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -traceback -O3 -fPIC" - export FFLAGS="-g -traceback -O3 -auto -convert big_endian -assume byterecl -fp-model strict -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -traceback -O3 -fPIC" - export MPIFFLAGS="-g -traceback -O3 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="-DLINUX" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Sp_intel_Gaea.sh b/Conf/Sp_intel_Gaea.sh deleted file mode 100644 index 7cd2a095..00000000 --- a/Conf/Sp_intel_Gaea.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for Theia/Gaea/Jet (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -O3 -traceback -xHOST -fPIC" - export FFLAGS="-g -O3 -traceback -xHOST -auto -convert big_endian -assume byterecl -fp-model strict -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -traceback -xHOST -fPIC" - export MPIFFLAGS="-g -O3 -traceback -xHOST -auto -convert big_endian -assume byterecl -fp-model strict -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="-DLINUX" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Sp_intel_General.sh b/Conf/Sp_intel_General.sh deleted file mode 100644 index fda9aa00..00000000 --- a/Conf/Sp_intel_General.sh +++ /dev/null @@ -1,38 +0,0 @@ -# *** manually set environments (for intel compiler) of sp *** - - : ${USERMODE:=false} # user mode (USERMODE) is closed by default - # set env var USERMODE to "true" to active it - ${USERMODE} && { - echo "Environment set by user" -# On theia/cray, user can load environment - module load intel/18.0.1.163 - } - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -traceback -O3 -fPIC" - export FFLAGS="-g -traceback -O3 -auto -convert big_endian -assume byterecl -fp-model strict -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -traceback -O3 -fPIC" - export MPIFFLAGS="-g -traceback -O3 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="-DLINUX" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Sp_intel_Hera.sh b/Conf/Sp_intel_Hera.sh deleted file mode 100644 index d0ed195c..00000000 --- a/Conf/Sp_intel_Hera.sh +++ /dev/null @@ -1,34 +0,0 @@ -# *** for Hera (intel) *** - $rinst && { - grep -E "(^|:|/)sp/" <<< "$LOADEDMODULES" &> /dev/null \ - || module load sp/2.0.3 - } - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -O3 -ftz -traceback -xHOST -axcore-avx512 -fPIC" - export FFLAGS="-g -O3 -ftz -traceback -fpe0 -xHOST -axcore-avx512 -auto -convert big_endian -assume byterecl -fp-model strict -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -ftz -traceback -xHOST -axcore-avx512 -fPIC" - export MPIFFLAGS="-g -O3 -ftz -traceback -fpe0 -xHOST -axcore-avx512 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="-DLINUX" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Sp_intel_Jet.sh b/Conf/Sp_intel_Jet.sh deleted file mode 100644 index f46fc80f..00000000 --- a/Conf/Sp_intel_Jet.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for Theia/Gaea/Jet (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -O3 -traceback -xHOST -fPIC" - export FFLAGS="-O3 -auto -openmp -i4 -convert big_endian -assume byterecl -fp-model strict -real-size 32 -fpp -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -traceback -xHOST -fPIC" - export MPIFFLAGS="-O3 -auto -openmp -i4 -convert big_endian -assume byterecl -fp-model strict -real-size 32 -fpp -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="-DLINUX" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Sp_intel_Theia.sh b/Conf/Sp_intel_Theia.sh deleted file mode 100644 index 36fe22d0..00000000 --- a/Conf/Sp_intel_Theia.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for Theia (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -O3 -ftz -traceback -xHOST -axcore-avx512 -fPIC" - export FFLAGS="-g -O3 -ftz -traceback -fpe0 -xHOST -axcore-avx512 -auto -convert big_endian -assume byterecl -fp-model strict -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -O3 -ftz -traceback -xHOST -axcore-avx512 -fPIC" - export MPIFFLAGS="-g -O3 -ftz -traceback -fpe0 -xHOST -axcore-avx512 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="-DLINUX" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/Conf/Sp_intel_Wcoss.sh b/Conf/Sp_intel_Wcoss.sh deleted file mode 100644 index d0554e23..00000000 --- a/Conf/Sp_intel_Wcoss.sh +++ /dev/null @@ -1,30 +0,0 @@ -# *** for WCOSS IBM phase1 (intel) *** - - export CC=icc - export FC=ifort - export CPP=cpp - export OMPCC="$CC -qopenmp" - export OMPFC="$FC -qopenmp" - export MPICC=mpiicc - export MPIFC=mpiifort - - export DEBUG="-g -traceback -O0" - export CFLAGS="-g -traceback -O3 -fPIC" - export FFLAGS="-g -traceback -O3 -auto -convert big_endian -assume byterecl -fp-model strict -fPIC" - export FPPCPP="-cpp" - export FREEFORM="-free" - export CPPFLAGS="-P -traditional-cpp" - export MPICFLAGS="-g -traceback -O3 -fPIC" - export MPIFFLAGS="-g -traceback -O3 -fPIC" - export MODPATH="-module " - export I4R4="-integer-size 32 -real-size 32" - export I4R8="-integer-size 32 -real-size 64" - export I8R8="-integer-size 64 -real-size 64" - - export CPPDEFS="" - export CFLAGSDEFS="-DUNDERSCORE -DLINUX" - export FFLAGSDEFS="-DLINUX" - - export USECC="" - export USEFC="YES" - export DEPS="" diff --git a/build_sp.sh b/build_sp.sh deleted file mode 100755 index 9ec5688b..00000000 --- a/build_sp.sh +++ /dev/null @@ -1,122 +0,0 @@ -#!/bin/bash - - : ${THISDIR:=$(dirname $(readlink -f -n ${BASH_SOURCE[0]}))} - CDIR=$PWD; cd $THISDIR - - source ./Conf/Analyse_args.sh - source ./Conf/Collect_info.sh - source ./Conf/Gen_cfunction.sh - source ./Conf/Reset_version.sh - - if [[ ${sys} == "intel_general" ]]; then - sys6=${sys:6} - source ./Conf/Sp_${sys:0:5}_${sys6^}.sh - rinst=false - elif [[ ${sys} == "gnu_general" ]]; then - sys4=${sys:4} - source ./Conf/Sp_${sys:0:3}_${sys4^}.sh - rinst=false - else - source ./Conf/Sp_intel_${sys^}.sh - fi - $CC --version &> /dev/null || { - echo "??? SP: compilers not set." >&2 - exit 1 - } - [[ -z ${SP_VER+x} || -z ${SP_LIB4+x} ]] && { - [[ -z ${libver+x} || -z ${libver} ]] && { - echo "??? SP: \"libver\" not set." >&2 - exit - } - SP_LIB4=lib${libver}_4.a - SP_LIB8=lib${libver}_8.a - SP_LIBd=lib${libver}_d.a - SP_VER=v${libver##*_v} - } - -set -x - spLib4=$(basename ${SP_LIB4}) - spLib8=$(basename ${SP_LIB8}) - spLibd=$(basename ${SP_LIBd}) - -################# - cd src -################# - -#------------------------------------------------------------------- -# Start building libraries -# - echo - echo " ... build (i4/r4) sp library ..." - echo - make clean LIB=$spLib4 - FFLAGS4="$I4R4 $FFLAGS" - collect_info sp 4 OneLine4 LibInfo4 - spInfo4=sp_info_and_log4.txt - $debg && make debug FFLAGS="$FFLAGS4" LIB=$spLib4 &> $spInfo4 \ - || make build FFLAGS="$FFLAGS4" LIB=$spLib4 &> $spInfo4 - make message MSGSRC="$(gen_cfunction $spInfo4 OneLine4 LibInfo4)" \ - LIB=$spLib4 - - echo - echo " ... build (i8/r8) sp library ..." - echo - make clean LIB=$spLib8 - FFLAGS8="$I8R8 $FFLAGS" - collect_info sp 8 OneLine8 LibInfo8 - spInfo8=sp_info_and_log8.txt - $debg && make debug FFLAGS="$FFLAGS8" LIB=$spLib8 &> $spInfo8 \ - || make build FFLAGS="$FFLAGS8" LIB=$spLib8 &> $spInfo8 - make message MSGSRC="$(gen_cfunction $spInfo8 OneLine8 LibInfo8)" \ - LIB=$spLib8 - - echo - echo " ... build (i4/r8) sp library ..." - echo - make clean LIB=$spLibd - FFLAGSd="$I4R8 $FFLAGS" - collect_info sp d OneLined LibInfod - spInfod=sp_info_and_logd.txt - $debg && make debug FFLAGS="$FFLAGSd" LIB=$spLibd &> $spInfod \ - || make build FFLAGS="$FFLAGSd" LIB=$spLibd &> $spInfod - make message MSGSRC="$(gen_cfunction $spInfod OneLined LibInfod)" \ - LIB=$spLibd - - $inst && { -# -# Install libraries and source files -# - $local && { - instloc=.. - LIB_DIR=$instloc/lib - [ -d $LIB_DIR ] || { mkdir -p $LIB_DIR; } - LIB_DIR4=$LIB_DIR - LIB_DIR8=$LIB_DIR - LIB_DIRd=$LIB_DIR - SRC_DIR= - } || { - $rinst && { - LIB_DIR4=$(dirname ${SP_LIB4}) - LIB_DIR8=$(dirname ${SP_LIB8}) - LIB_DIRd=$(dirname ${SP_LIBd}) - SRC_DIR=$SP_SRC - } || { - LIB_DIR=$instloc/lib - LIB_DIR4=$LIB_DIR - LIB_DIR8=$LIB_DIR - LIB_DIRd=$LIB_DIR - SRC_DIR=$instloc/src/${libver} - [[ $instloc == .. ]] && SRC_DIR= - } - [ -d $LIB_DIR4 ] || mkdir -p $LIB_DIR4 - [ -d $LIB_DIR8 ] || mkdir -p $LIB_DIR8 - [ -d $LIB_DIRd ] || mkdir -p $LIB_DIRd - [ -z $SRC_DIR ] || { [ -d $SRC_DIR ] || mkdir -p $SRC_DIR; } - } - - make clean LIB= - make install LIB=$spLib4 LIB_DIR=$LIB_DIR4 SRC_DIR= - make install LIB=$spLib8 LIB_DIR=$LIB_DIR8 SRC_DIR= - make install LIB=$spLibd LIB_DIR=$LIB_DIRd SRC_DIR=$SRC_DIR - } - diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index b78611b0..00000000 --- a/src/Makefile +++ /dev/null @@ -1,48 +0,0 @@ -SHELL=/bin/sh - -# sources, headers, objects, library and etc. -SRCS_F = ncpus.F lapack_gen.F splat.F fftpack.F -SRCS_i = $(patsubst %.F, %.i, $(SRCS_F)) -SRCS_f = $(wildcard *.f) -SRCS = $(SRCS_F) $(SRCS_f) -OBJS = $(patsubst %.F, %.o, $(SRCS_F)) \ - $(patsubst %.f, %.o, $(SRCS_f)) - -all: build - -build: $(LIB) - -$(LIB): $(OBJS) - $(AR) $(ARFLAGS) $@ $^ - -debug: dbg_build - -dbg_build: override FFLAGS += $(DEBUG) -dbg_build: $(LIB) - -%.o: %.f - $(OMPFC) -c $(FFLAGS) $< - -%.o: %.F - $(OMPFC) -c $(FPPCPP) $(FFLAGS) $(FFLAGSDEFS) $< - -message: $(MSGSRC) - $(CC) -c $(MSGSRC) - $(AR) $(ARFLAGS) $(LIB) $(patsubst %.c, %.o, $(MSGSRC)) - $(RM) $(MSGSRC) $(patsubst %.c, %.o, $(MSGSRC)) - -install: - [[ -z "$(LIB)" || -z "$(LIB_DIR)" ]] || mv $(LIB) $(LIB_DIR) - [[ -z "$(SRC_DIR)" ]] || cp ./* $(SRC_DIR) - -test: - @echo "*** unit test unavailable currently ***" - -clean: - $(RM) $(SRCS_i) $(OBJS) $(LIB) - -.SUFFIXES: .F .f .i .o - -# Specify targets that do not generate filesystem objects -.PHONY: all build install debug dbg_build message test clean - From 4ee2bca5506ec54b79e68d1cbc9522467966dd19 Mon Sep 17 00:00:00 2001 From: kgerheiser Date: Fri, 26 Jun 2020 15:19:02 -0400 Subject: [PATCH 3/3] Bump version to 2.3.0 --- README.md | 2 +- VERSION | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c4fe834b..42488260 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ make install ### Version -2.2.0 +2.3.0 ### Authors diff --git a/VERSION b/VERSION index ccbccc3d..276cbf9e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.0 +2.3.0