| 1 |
#!/bin/bash -l |
| 2 |
|
| 3 |
set +x |
| 4 |
|
| 5 |
if [[ "${SALLOC_CTEST_LIMIT_MINUTES}" == "" ]] ; then |
| 6 |
SALLOC_CTEST_LIMIT_MINUTES=4:00:00 |
| 7 |
# From prior builds on 'stria', it looks like 4 hours should be plenty of |
| 8 |
# time to do the build and tests as it has taken only about 2 1/2 hours to |
| 9 |
# do everything. |
| 10 |
fi |
| 11 |
|
| 12 |
source $WORKSPACE/Trilinos/cmake/std/atdm/load-env.sh $JOB_NAME |
| 13 |
echo |
| 14 |
|
| 15 |
if [[ "${ATDM_CONFIG_WCID_ACCOUNT}" == "" ]] ; then |
| 16 |
export ATDM_CONFIG_WCID_ACCOUNT=${ATDM_CONFIG_WCID_ACCOUNT_DEFAULT} |
| 17 |
fi |
| 18 |
|
| 19 |
set -x |
| 20 |
|
| 21 |
salloc -N 1 --time=${SALLOC_CTEST_LIMIT_MINUTES} -p short,batch \ |
| 22 |
--account=${ATDM_CONFIG_WCID_ACCOUNT} \ |
| 23 |
$WORKSPACE/Trilinos/cmake/ctest/drivers/atdm/van1-tx2/local-driver-on-allocation.sh |
| 24 |
|
| 25 |
set -x |
| 26 |
|
| 27 |
# NOTE: Above, we get a single compute-node allocation using 'salloc' and then |
| 28 |
# run the build and tests from inside of that. |
| 29 |
|
| 30 |
# NOTE: We might need to switch from salloc to the more complex sbatch |
| 31 |
# appraoch in the function atdm_run_script_on_compute_node. If we see random |
| 32 |
# ODTE errors then that is what we will need to do. |