From f5d09c2b4d7e265129769e13d63b877634f8b825 Mon Sep 17 00:00:00 2001 From: David A Minton Date: Mon, 19 Feb 2024 15:57:18 -0500 Subject: [PATCH] Removed unnecessary rcac build scripts --- buildscripts/build_rcac_gnu.sh | 83 ---------------------------- buildscripts/build_rcac_intel.sh | 92 -------------------------------- 2 files changed, 175 deletions(-) delete mode 100755 buildscripts/build_rcac_gnu.sh delete mode 100755 buildscripts/build_rcac_intel.sh diff --git a/buildscripts/build_rcac_gnu.sh b/buildscripts/build_rcac_gnu.sh deleted file mode 100755 index 13f4ab923..000000000 --- a/buildscripts/build_rcac_gnu.sh +++ /dev/null @@ -1,83 +0,0 @@ -#!/bin/zsh -l -# Builds Swiftest on the Purdue RCAC cluster system using the GNU compiler -# This is a convenience script for Kaustub -# The default build type is Release. Pass other build types as a string argument. -# -# Example: -# $ buildscripts/build_rcac_gnu.sh "Debug" - -set -a -SCRIPT_DIR=$(realpath $(dirname $0)) -ROOT_DIR=$(realpath ${SCRIPT_DIR}/..) -cd ${ROOT_DIR} -BUILD_TYPE=${1:-"Release"} - -# Set the OMP_NUM_THREADS variable to be the number of CPUS if this is a compute node, or 1 if this is a frontend or login node -if { hostname | grep -E 'fe|login'; } >/dev/null 2>&1; then - OMP_NUM_THREADS=1 -else - OMP_NUM_THREADS=$(squeue -u $(whoami) | grep $SLURM_JOB_ID | awk -F' ' '{print $6}') -fi - -MACHINE_NAME=$(uname -n | awk -F. '{ - if ($2 == "negishi" || $2 == "bell") - print $2; - else { - split($1, a, "-"); - if (length(a) > 1) - print a[1]; - else - print "Unknown"; - } -}') -if [[ $MACHINE_NAME == "bell" ]]; then - module load anaconda/2020.11-py38 -elif [[ $MACHINE_NAME == "negishi" ]]; then - module load anaconda/2022.10-py39 -fi - -if { conda env list | grep 'mintongroup'; } >/dev/null 2>&1; then - echo "The mintongroup conda environment was detected" -else - echo "The mintongroup conda environment was not detected. Creating it now..." - /depot/daminton/apps/build_mintongroup_conda.sh -fi - - -if [[ $MACHINE_NAME == "bell" ]]; then - module purge - module use /depot/daminton/etc/modules/bell - module load use.own - module load gcc/10.2.0 - module load conda-env/mintongroup-py3.8.5 - module load hdf5/1.10.6 - module load netcdf/4.7.4 - module load netcdf-fortran/4.5.3 - module load shtools/gcc10/4.11.10 - module load cmake/3.20.6 - module load ninja/1.11.1 -elif [[ $MACHINE_NAME == "negishi" ]]; then - module purge - module use /depot/daminton/etc/modules/negishi - module load use.own - module load gcc/12.2.0 - module load conda-env/mintongroup-py3.9.13 - module load hdf5/1.13.2 - module load netcdf-c/4.9.0 - module load netcdf-fortran/4.6.0 - module load shtools/gcc12/4.11.10 - module load cmake/3.24.3 - module load ninja/1.11.1 -fi - -cmake -P distclean.cmake -pip uninstall swiftest -y -pip install --config-settings=build-dir="build" \ - --config-settings=cmake.build-type="${BUILD_TYPE}" \ - --config-settings=cmake.args="-DUSE_SIMD=ON" \ - --config-settings=cmake.args="-DUSE_OPENMP=ON" \ - --config-settings=cmake.args="-DCMAKE_Fortran_COMPILER=gfortran" \ - --config-settings=cmake.args="-DMACHINE_CODE_VALUE=\"Host\" " \ - --config-settings=install.strip=false \ - --no-build-isolation \ - -ve . \ No newline at end of file diff --git a/buildscripts/build_rcac_intel.sh b/buildscripts/build_rcac_intel.sh deleted file mode 100755 index a38580970..000000000 --- a/buildscripts/build_rcac_intel.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/zsh -l -# installs an editable (local) package on Bell -# This is a convenience script for Kaustub -# To use in Release mode -# The default build type is Release. Pass other build types as a string argument. -# -# Example: -# $ buildscripts/build_rcac_intel.sh "Debug" - - -set -a -SCRIPT_DIR=$(realpath $(dirname $0)) -ROOT_DIR=$(realpath ${SCRIPT_DIR}/..) -cd ${ROOT_DIR} -BUILD_TYPE=${1:-"Release"} - -# Set the OMP_NUM_THREADS variable to be the number of CPUS if this is a compute node, or 1 if this is a frontend or login node -if { hostname | grep -E 'fe|login'; } >/dev/null 2>&1; then - OMP_NUM_THREADS=1 -else - OMP_NUM_THREADS=$(squeue -u $(whoami) | grep $SLURM_JOB_ID | awk -F' ' '{print $6}') -fi - -MACHINE_NAME=$(uname -n | awk -F. '{ - if ($2 == "negishi" || $2 == "bell") - print $2; - else { - split($1, a, "-"); - if (length(a) > 1) - print a[1]; - else - print "Unknown"; - } -}') -if [[ $MACHINE_NAME == "bell" ]]; then - module load anaconda/2020.11-py38 -elif [[ $MACHINE_NAME == "negishi" ]]; then - module load anaconda/2022.10-py39 -fi - -if { conda env list | grep 'mintongroup'; } >/dev/null 2>&1; then - print -n "The mintongroup conda environment was detected" -else - print -n "The mintongroup conda environment was not detected. Creating it now..." - /depot/daminton/apps/build_mintongroup_conda.sh -fi - - -if [[ $MACHINE_NAME == "bell" ]]; then - module purge - module use /depot/daminton/etc/modules/bell - module load use.own - module load intel/19.0.5.281 - module load intel-mkl/2019.5.281 - module load impi/2019.5.281 - module load conda-env/mintongroup-py3.8.5 - module load shtools/intel19/4.11.10 - module load cmake/3.20.6 - module load ninja/1.11.1 - module load hdf5/1.10.6 - module load netcdf/4.7.4 - module load netcdf-fortran/4.5.3 - MACHINE_CODE_VALUE="Host" -elif [[ $MACHINE_NAME == "negishi" ]]; then - module purge - module use /depot/daminton/etc/modules/negishi - module load use.own - module load intel/19.1.3.304 - module load intel-mkl/2019.9.304 - module load impi/2019.9.304 - module load conda-env/mintongroup-py3.9.13 - module load shtools/intel19/4.11.10 - module load cmake/3.24.3 - module load ninja/1.11.1 - module load hdf5/1.13.2 - module load netcdf-c/4.9.0 - module load netcdf-fortran/4.6.0 - MACHINE_CODE_VALUE="SSE2" -fi - - -cmake -P distclean.cmake -pip uninstall swiftest -y -pip install --config-settings=build-dir="build" \ - --config-settings=cmake.build-type="${BUILD_TYPE}" \ - --config-settings=cmake.args="-DUSE_SIMD=ON" \ - --config-settings=cmake.args="-DUSE_OPENMP=ON" \ - --config-settings=cmake.args="-DCMAKE_Fortran_COMPILER=${FC}" \ - --config-settings=cmake.args="-DMACHINE_CODE_VALUE=$MACHINE_CODE_VALUE" \ - --config-settings=install.strip=false \ - --no-build-isolation \ - -ve . \ No newline at end of file