Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions BuildMe.Aurora
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash
set -e -a

: ${ONEAPI_SDK:="oneapi/release/2025.3.1"}

#... load the necessary modules here ...
module reload
module load ${ONEAPI_SDK}
module load cmake
module list
#...

#... set some environment variables
export CC=mpicc
export CXX=mpic++
export FC=mpif77

#.. ===
path_to_code=`pwd`
build_date=$(date '+%Y-%m-%d')
which_build=RBK_built.on.${build_date}
BUILD_DIR=${path_to_code}/${which_build}

#.. NOTE: change the location of NEKRS_HOME to a directory that you have access to.
#.. ^^^^
export NEKRS_SOURCE_DIR=${PWD} #.. this is where we are
echo ${NEKRS_SOURCE_DIR}
export NEKRS_BRANCH_DIR=${NEKRS_SOURCE_DIR%/*} #.. this is where we were, one step above
echo ${NEKRS_BRANCH_DIR}
export NEKRS_HOME=${NEKRS_BRANCH_DIR}/.local/nekrs #.. we install stuff in the .local directory, one step above
#.. from where we are now, i.e., one step above ${NEKRS_SOURCE_DIR}
#.. that is, .local is located in ${NEKRS_BRANCH_DIR}
echo ${NEKRS_HOME}
#...
export INSTALL_DIR=${NEKRS_HOME}

#...
cmake -S . -B ${BUILD_DIR} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -Wfatal-errors && \
cmake --build ${BUILD_DIR} --parallel 8 && \
cmake --install ${BUILD_DIR}

#...
ln -fsn ${which_build} current
42 changes: 42 additions & 0 deletions BuildMe.Crux
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
set -e -a

#... load the necessary modules here ...
module restore
module use /soft/modulefiles
module load spack-pe-base/0.9.1
module load cmake
module load PrgEnv-gnu
#...

#... set some environment variables
export CC=cc
export CXX=CC
export FC=ftn

#.. ===
path_to_code=`pwd`
build_date=$(date '+%Y-%m-%d')
which_build=RBK_built.on.${build_date}
BUILD_DIR=${path_to_code}/${which_build}

#.. NOTE: change the location of NEKRS_HOME to a directory that you have access to.
#.. ^^^^
export NEKRS_SOURCE_DIR=${PWD} #.. this is where we are
echo ${NEKRS_SOURCE_DIR}
export NEKRS_BRANCH_DIR=${NEKRS_SOURCE_DIR%/*} #.. this is where we were, one step above
echo ${NEKRS_BRANCH_DIR}
export NEKRS_HOME=${NEKRS_BRANCH_DIR}/.local/nekrs #.. we install stuff in the .local directory, one step above
#.. from where we are now, i.e., one step above ${NEKRS_SOURCE_DIR}
#.. that is, .local is located in ${NEKRS_BRANCH_DIR}
echo ${NEKRS_HOME}
#...
export INSTALL_DIR=${NEKRS_HOME}

#...
cmake -S . -B ${BUILD_DIR} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -Wfatal-errors && \
cmake --build ${BUILD_DIR} --parallel 8 && \
cmake --install ${BUILD_DIR}

#...
ln -fsn ${which_build} current
47 changes: 47 additions & 0 deletions BuildMe.Frontier
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash
set -e -a

#... load the necessary modules here ...
#... Building with the AMD compiler ...
module reset
module load PrgEnv-amd
module load craype-accel-amd-gfx90a
module load cray-mpich
module load rocm
module load cmake
module unload cray-libsci darshan-runtime

module list
#...

#... set some environment variables
export CC=cc
export CXX=CC
export FC=ftn

#.. ===
path_to_code=`pwd`
build_date=$(date '+%Y-%m-%d')
which_build=RBK_built.on.${build_date}
BUILD_DIR=${path_to_code}/${which_build}

#.. NOTE: change the location of NEKRS_HOME to a directory that you have access to.
#.. ^^^^
export NEKRS_SOURCE_DIR=${PWD} #.. this is where we are
echo ${NEKRS_SOURCE_DIR}
export NEKRS_BRANCH_DIR=${NEKRS_SOURCE_DIR%/*} #.. this is where we were, one step above
echo ${NEKRS_BRANCH_DIR}
export NEKRS_HOME=${NEKRS_BRANCH_DIR}/.local/nekrs #.. we install stuff in the .local directory, one step above
#.. from where we are now, i.e., one step above ${NEKRS_SOURCE_DIR}
#.. that is, .local is located in ${NEKRS_BRANCH_DIR}
echo ${NEKRS_HOME}
#...
export INSTALL_DIR=${NEKRS_HOME}

#...
cmake -S . -B ${BUILD_DIR} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -DNEKRS_Fortran_FLAGS="-fuse-ld=bfd" -Wfatal-errors && \
cmake --build ${BUILD_DIR} --parallel 8 && \
cmake --install ${BUILD_DIR}

#...
ln -fsn ${which_build} current
45 changes: 45 additions & 0 deletions BuildMe.Polaris
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/bash
set -e -a

#... load the necessary modules here ...
module restore
module use /soft/modulefiles
module swap PrgEnv-nvidia PrgEnv-gnu
module load cudatoolkit-standalone/13.0.1
module load cuda/12.9
module load gcc-native/13.2
module load craype-x86-milan craype-accel-nvidia80
module load spack-pe-base cmake
#...

#... set some environment variables
export CC=cc
export CXX=CC
export FC=ftn

#.. ===
path_to_code=`pwd`
build_date=$(date '+%Y-%m-%d')
which_build=RBK_built.on.${build_date}
BUILD_DIR=${path_to_code}/${which_build}

#.. NOTE: change the location of NEKRS_HOME to a directory that you have access to.
#.. ^^^^
export NEKRS_SOURCE_DIR=${PWD} #.. this is where we are
echo ${NEKRS_SOURCE_DIR}
export NEKRS_BRANCH_DIR=${NEKRS_SOURCE_DIR%/*} #.. this is where we were, one step above
echo ${NEKRS_BRANCH_DIR}
export NEKRS_HOME=${NEKRS_BRANCH_DIR}/.local/nekrs #.. we install stuff in the .local directory, one step above
#.. from where we are now, i.e., one step above ${NEKRS_SOURCE_DIR}
#.. that is, .local is located in ${NEKRS_BRANCH_DIR}
echo ${NEKRS_HOME}
#...
export INSTALL_DIR=${NEKRS_HOME}

#...
cmake -S . -B ${BUILD_DIR} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -Wfatal-errors && \
cmake --build ${BUILD_DIR} --parallel 8 && \
cmake --install ${BUILD_DIR}

#...
ln -fsn ${which_build} current
43 changes: 43 additions & 0 deletions BuildMe.Sunspot
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash
set -e -a

: ${ONEAPI_SDK:="oneapi/release/2025.3.1"}

#... load the necessary modules here ...
module reload
module load ${ONEAPI_SDK}
module load cmake
module list
#...

#... set some environment variables
export CC=mpicc
export CXX=mpic++
export FC=mpif77

#.. ===
path_to_code=`pwd`
build_date=$(date '+%Y-%m-%d')
which_build=RBK_built.on.${build_date}
BUILD_DIR=${path_to_code}/${which_build}

#.. NOTE: change the location of NEKRS_HOME to a directory that you have access to.
#.. ^^^^
export NEKRS_SOURCE_DIR=${PWD} #.. this is where we are
echo ${NEKRS_SOURCE_DIR}
export NEKRS_BRANCH_DIR=${NEKRS_SOURCE_DIR%/*} #.. this is where we were, one step above
echo ${NEKRS_BRANCH_DIR}
export NEKRS_HOME=${NEKRS_BRANCH_DIR}/.local/nekrs #.. we install stuff in the .local directory, one step above
#.. from where we are now, i.e., one step above ${NEKRS_SOURCE_DIR}
#.. that is, .local is located in ${NEKRS_BRANCH_DIR}
echo ${NEKRS_HOME}
#...
export INSTALL_DIR=${NEKRS_HOME}

#...
cmake -S . -B ${BUILD_DIR} -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} -Wfatal-errors && \
cmake --build ${BUILD_DIR} --parallel 8 && \
cmake --install ${BUILD_DIR}

#...
ln -fsn ${which_build} current
Loading