1818 mkdir build_${CORENRN_TYPE} build_intel_${CORENRN_TYPE}
1919fi
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+
2130cd $WORKSPACE /build_${CORENRN_TYPE}
2231
2332echo " ${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