Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 9aa5991

Browse files
committed
Update Jenkisn node allocation
- use prod during night, interactive during day - no need to have exclusive node allocation for gpu tests
1 parent 250d0b8 commit 9aa5991

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

tests/jenkins/install_coreneuron.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ else
1818
mkdir build_${CORENRN_TYPE} build_intel_${CORENRN_TYPE}
1919
fi
2020

21+
# default partition is interactive. during night use production
22+
hour=`date +%H`
23+
weekday=`date +%u`
24+
if [ "$hour" -ge "19" ] || [ "$hour" -lt "8" ] || [ $weekday -gt 5 ]; then
25+
export SALLOC_PARTITION="prod";
26+
else
27+
export SALLOC_PARTITION="interactive"
28+
fi
29+
2130
cd $WORKSPACE/build_${CORENRN_TYPE}
2231

2332
echo "${CORENRN_TYPE} build"
@@ -26,8 +35,8 @@ if [ "${CORENRN_TYPE}" = "GPU-non-unified" ]; then
2635
-DCORENRN_ENABLE_GPU=ON \
2736
-DCORENRN_ENABLE_CUDA_UNIFIED_MEMORY=OFF \
2837
-DCMAKE_INSTALL_PREFIX=$WORKSPACE/install_${CORENRN_TYPE}/ \
29-
-DTEST_MPI_EXEC_BIN="srun;--exclusive;--account=proj16;--partition=interactive;--constraint=volta;--gres=gpu:1;--mem;0;-t;00:05:00" \
30-
-DTEST_EXEC_PREFIX="srun;-n;6;--exclusive;--account=proj16;--partition=interactive;--constraint=volta;--gres=gpu:1;--mem;0;-t;00:05:00" \
38+
-DTEST_MPI_EXEC_BIN="srun;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:1;--mem;0;-t;00:05:00" \
39+
-DTEST_EXEC_PREFIX="srun;-n;6;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:1;--mem;0;-t;00:05:00" \
3140
-DAUTO_TEST_WITH_SLURM=OFF \
3241
-DAUTO_TEST_WITH_MPIEXEC=OFF \
3342
$WORKSPACE/
@@ -36,8 +45,8 @@ elif [ "${CORENRN_TYPE}" = "GPU-unified" ]; then
3645
-DCORENRN_ENABLE_GPU=ON \
3746
-DCORENRN_ENABLE_CUDA_UNIFIED_MEMORY=ON \
3847
-DCMAKE_INSTALL_PREFIX=$WORKSPACE/install_${CORENRN_TYPE}/ \
39-
-DTEST_MPI_EXEC_BIN="srun;--exclusive;--account=proj16;--partition=interactive;--constraint=volta;--gres=gpu:1;--mem;0;-t;00:05:00" \
40-
-DTEST_EXEC_PREFIX="srun;-n;6;--exclusive;--account=proj16;--partition=interactive;--constraint=volta;--gres=gpu:1;--mem;0;-t;00:05:00" \
48+
-DTEST_MPI_EXEC_BIN="srun;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:1;--mem;0;-t;00:05:00" \
49+
-DTEST_EXEC_PREFIX="srun;-n;6;--account=proj16;--partition=$SALLOC_PARTITION;--constraint=volta;--gres=gpu:1;--mem;0;-t;00:05:00" \
4150
-DAUTO_TEST_WITH_SLURM=OFF \
4251
-DAUTO_TEST_WITH_MPIEXEC=OFF \
4352
$WORKSPACE/

0 commit comments

Comments
 (0)