Skip to content

Commit

Permalink
rename partitions in config + add extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
vsc46128 vscuser committed Dec 11, 2024
1 parent c74d4af commit 9bdea87
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 27 deletions.
12 changes: 1 addition & 11 deletions CI/hortense_EESSI_ss/ci_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,5 @@ if [ -z "${SET_LOCAL_MODULE_ENV}"]; then
fi

if [ -z "${LOCAL_MODULES}"]; then
if [ "$TEST_SUITE_PARTITION" == "cpu_rome_256gb" ]; then
export LOCAL_MODULES="env/vsc/dodrio/cpu_rome env/slurm/dodrio/cpu_rome"
elif [ "$TEST_SUITE_PARTITION" == "cpu_rome_512gb" ]; then
export LOCAL_MODULES="env/vsc/dodrio/cpu_rome_512 env/slurm/dodrio/cpu_rome_512"
elif [ "$TEST_SUITE_PARTITION" == "gpu_rome_a100_40gb" ]; then
export LOCAL_MODULES="env/vsc/dodrio/gpu_rome_a100_40 env/slurm/dodrio/gpu_rome_a100_40"
elif [ "$TEST_SUITE_PARTITION" == "gpu_rome_a100_80gb" ]; then
export LOCAL_MODULES="env/vsc/dodrio/gpu_rome_a100_80 env/slurm/dodrio/gpu_rome_a100_80"
else
export LOCAL_MODULES="env/vsc/dodrio/${TEST_SUITE_PARTITION} env/slurm/dodrio/${TEST_SUITE_PARTITION}"
fi
export LOCAL_MODULES="env/vsc/dodrio/${TEST_SUITE_PARTITION} env/slurm/dodrio/${TEST_SUITE_PARTITION}"
fi
19 changes: 7 additions & 12 deletions CI/hortense_local_ss/ci_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,15 @@ if [ -z "${RFM_CONFIG_FILES}" ]; then
export RFM_CONFIG_FILES="${TEMPDIR}/test-suite/config/vsc_hortense.py"
fi

if [ -z "${UNSET_MODULEPATH}" ]; then
export UNSET_MODULEPATH=False
module --force purge
fi

if [ -z "${SET_LOCAL_MODULE_ENV}"]; then
export SET_LOCAL_MODULE_ENV=True
fi

if [ -z "${LOCAL_MODULES}"]; then
if [ "$TEST_SUITE_PARTITION" == "cpu_rome_256gb" ]; then
export LOCAL_MODULES="cluster/dodrio/cpu_rome"
elif [ "$TEST_SUITE_PARTITION" == "cpu_rome_512gb" ]; then
export LOCAL_MODULES="cluster/dodrio/cpu_rome_512"
elif [ "$TEST_SUITE_PARTITION" == "gpu_rome_a100_40gb" ]; then
export LOCAL_MODULES="cluster/dodrio/gpu_rome_a100_40"
elif [ "$TEST_SUITE_PARTITION" == "gpu_rome_a100_80gb" ]; then
export LOCAL_MODULES="cluster/dodrio/gpu_rome_a100_80"
else
export LOCAL_MODULES="cluster/dodrio/${TEST_SUITE_PARTITION}"
fi
fi
export LOCAL_MODULES="cluster/dodrio/${TEST_SUITE_PARTITION}"
fi
4 changes: 4 additions & 0 deletions CI/run_reframe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ fi
if [ -z "${UNSET_MODULEPATH}" ]; then
export UNSET_MODULEPATH=True
fi
if [ -z "${SET_LOCAL_MODULE_ENV}" ]; then
export SET_LOCAL_MODULE_ENV=False
fi

# Create virtualenv for ReFrame using system python
python3 -m venv "${TEMPDIR}"/reframe_venv
Expand Down Expand Up @@ -143,6 +146,7 @@ echo "ReFrame check search recursive: ${RFM_CHECK_SEARCH_RECURSIVE}"
echo "ReFrame prefix: ${RFM_PREFIX}"
echo "ReFrame args: ${REFRAME_ARGS}"
echo "Using EESSI: ${USE_EESSI_SOFTWARE_STACK}"
echo "Using local software stack ${SET_LOCAL_MODULE_ENV}"
echo "MODULEPATH: ${MODULEPATH}"
echo ""

Expand Down
8 changes: 4 additions & 4 deletions config/vsc_hortense.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def command(self, job):
'modules_system': 'lmod',
'partitions': [
{
'name': 'cpu_rome_256gb',
'name': 'cpu_rome',
'scheduler': 'slurm',
'prepare_cmds': [prepare_eessi_init, common_eessi_init()],
'access': hortense_access + ['--partition=cpu_rome'],
Expand All @@ -85,7 +85,7 @@ def command(self, job):
},
},
{
'name': 'cpu_rome_512gb',
'name': 'cpu_rome_512',
'scheduler': 'slurm',
'prepare_cmds': [prepare_eessi_init, common_eessi_init()],
'access': hortense_access + ['--partition=cpu_rome_512'],
Expand Down Expand Up @@ -135,7 +135,7 @@ def command(self, job):
},
},
{
'name': 'gpu_rome_a100_40gb',
'name': 'gpu_rome_a100_40',
'scheduler': 'slurm',
'prepare_cmds': [prepare_eessi_init, common_eessi_init()],
'access': hortense_access + ['--partition=gpu_rome_a100_40'],
Expand Down Expand Up @@ -172,7 +172,7 @@ def command(self, job):

},
{
'name': 'gpu_rome_a100_80gb',
'name': 'gpu_rome_a100_80',
'scheduler': 'slurm',
'prepare_cmds': [prepare_eessi_init, common_eessi_init()],
'access': hortense_access + ['--partition=gpu_rome_a100_80'],
Expand Down

0 comments on commit 9bdea87

Please sign in to comment.