Skip to content

Commit

Permalink
mbot nonsense
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoo1042 committed Jun 4, 2024
1 parent d724dc3 commit 05bc363
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions support/Environments/mbot_clang.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/env sh

# Distributed under the MIT License.
# See LICENSE.txt for details.

spectre_setup_modules() {
echo "All modules on Mbot are provided by the system"
}

spectre_load_modules() {
# The order here is important
module load gcc/11.4.0
module load spectre-deps > /dev/null 2>&1
}

spectre_unload_modules() {
# The order here is important
module unload spectre-deps > /dev/null 2>&1
module unload gcc/11.4.0
}

spectre_run_cmake() {
if [ -z ${SPECTRE_HOME} ]; then
echo "You must set SPECTRE_HOME to the cloned SpECTRE directory"
return 1
fi
spectre_load_modules > /dev/null 2>&1
cmake -D CMAKE_C_COMPILER=clang \
-D CMAKE_CXX_COMPILER=clang++ \
-D CMAKE_Fortran_COMPILER=gfortran \
-D CHARM_ROOT=$CHARM_ROOT \
-D CMAKE_BUILD_TYPE=Release \
-D MEMORY_ALLOCATOR=JEMALLOC \
-D BUILD_PYTHON_BINDINGS=ON \
-D MACHINE=Mbot \
-D USE_XSIMD=no \
"$@" \
$SPECTRE_HOME
}

0 comments on commit 05bc363

Please sign in to comment.