-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
General config and run_reframe.sh
for local and EESSI stack
#200
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Configurable items | ||
if [ -z "${REFRAME_ARGS}" ]; then | ||
REFRAME_ARGS="--tag CI --tag 1_node|2_nodes --system hortense:cpu_rome_256gb" | ||
fi | ||
|
||
if [ -z "${UNSET_MODULEPATH}" ]; then | ||
export UNSET_MODULEPATH=False | ||
module --force purge | ||
fi | ||
|
||
if [ -z "${USE_EESSI_SOFTWARE_STACK}" ]; then | ||
export USE_EESSI_SOFTWARE_STACK=True | ||
fi | ||
|
||
if [ -z "${RFM_CONFIG_FILES}" ]; then | ||
export RFM_CONFIG_FILES="/dodrio/scratch/users/vsc46128/vsc_hortense.py" | ||
fi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Configurable items | ||
if [ -z "${REFRAME_ARGS}" ]; then | ||
REFRAME_ARGS="--tag CI --tag 1_node|2_nodes --system hortense:cpu_rome_256gb" | ||
fi | ||
|
||
if [ -z "${UNSET_MODULEPATH}" ]; then | ||
export UNSET_MODULEPATH=False | ||
fi | ||
|
||
if [ -z "${USE_EESSI_SOFTWARE_STACK}" ]; then | ||
export USE_EESSI_SOFTWARE_STACK=False | ||
fi | ||
|
||
if [ -z "${RFM_CONFIG_FILES}" ]; then | ||
export RFM_CONFIG_FILES="/dodrio/scratch/users/vsc46128/vsc_hortense.py" | ||
fi |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -50,11 +50,14 @@ fi | |||||
if [ -z "${EESSI_TESTSUITE_BRANCH}" ]; then | ||||||
EESSI_TESTSUITE_BRANCH='v0.4.0' | ||||||
fi | ||||||
if [ -z "${EESSI_CVMFS_REPO}" ]; then | ||||||
export EESSI_CVMFS_REPO=/cvmfs/software.eessi.io | ||||||
fi | ||||||
if [ -z "${EESSI_VERSION}" ]; then | ||||||
export EESSI_VERSION=2023.06 | ||||||
if [ -z "${USE_EESSI_SOFTWARE_STACK}" ] | [ $USE_EESSI_SOFTWARE_STACK == "True" ]; then | ||||||
export USE_EESSI_SOFTWARE_STACK=True | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would be good to print some more of these variables in the section that also prints reframe config etc. Makes things easier to debug. |
||||||
if [ -z "${EESSI_CVMFS_REPO}" ]; then | ||||||
export EESSI_CVMFS_REPO=/cvmfs/software.eessi.io | ||||||
fi | ||||||
if [ -z "${EESSI_VERSION}" ]; then | ||||||
export EESSI_VERSION=2023.06 | ||||||
fi | ||||||
fi | ||||||
if [ -z "${RFM_CONFIG_FILES}" ]; then | ||||||
export RFM_CONFIG_FILES="${TEMPDIR}/test-suite/config/${EESSI_CI_SYSTEM_NAME}.py" | ||||||
|
@@ -73,6 +76,9 @@ if [ -z "${REFRAME_TIMEOUT}" ]; then | |||||
# This will prevent multiple ReFrame runs from piling up and exceeding the quota on our Magic Castle clusters | ||||||
export REFRAME_TIMEOUT=1430m | ||||||
fi | ||||||
if [ -z "${UNSET_MODULEPATH}" ]; then | ||||||
export UNSET_MODULEPATH=True | ||||||
fi | ||||||
|
||||||
# Create virtualenv for ReFrame using system python | ||||||
python3 -m venv "${TEMPDIR}"/reframe_venv | ||||||
|
@@ -93,9 +99,13 @@ git clone ${EESSI_CLONE_ARGS} | |||||
export PYTHONPATH="${PYTHONPATH}":"${TEMPDIR}"/test-suite/ | ||||||
|
||||||
# Start the EESSI environment | ||||||
unset MODULEPATH | ||||||
eessi_init_path="${EESSI_CVMFS_REPO}"/versions/"${EESSI_VERSION}"/init/bash | ||||||
source "${eessi_init_path}" | ||||||
if [ $UNSET_MODULEPATH == "True" ]; then | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
unset MODULEPATH | ||||||
fi | ||||||
if [ $USE_EESSI_SOFTWARE_STACK == "True" ]; then | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
eessi_init_path="${EESSI_CVMFS_REPO}"/versions/"${EESSI_VERSION}"/init/bash | ||||||
source "${eessi_init_path}" | ||||||
fi | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we have an alternative to load a local module environment? Might not be needed on your systems. On our system we'd have to load a meta-module (e.g. |
||||||
# Needed in order to make sure the reframe from our TEMPDIR is first on the PATH, | ||||||
# prior to the one shipped with the 2021.12 compat layer | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting:
Also, when
USE_EESSI_SOFTWARE_STACK
was empty, it didn't get set by default (which seems to me is what you were trying to do here). The reason is you're using a single|
instead of||
.Both be resolved by: