Debian Codegraph @

cmake/ctest/drivers/atdm/ats2/local-driver.sh

raw
1 #!/bin/bash -l
2
3 set +x
4
5 # Need to load env so we define some vars
6 source $WORKSPACE/Trilinos/cmake/std/atdm/load-env.sh $JOB_NAME
7
8 # Make adjustments for the XL builds
9 if atdm_match_buildname_keyword xl ; then
10 echo "This is an XL build!"
11 # For XL, do not build tests and examples by default.
12 if [[ "${Trilinos_INNER_ENABLE_TESTS}" == "" ]]; then
13 export Trilinos_INNER_ENABLE_TESTS=OFF
14 fi
15 # Don't do the cuda-aware build for the XL builds if you are not building
16 # internal tests and examples.
17 if [[ "${Trilinos_INNER_ENABLE_TESTS}" == "OFF" ]]; then
18 export Trilinos_CTEST_RUN_GPU_AWARE_MPI=0
19 fi
20 # Only enable the SPARC packages by default
21 export ATDM_CONFIG_CONFIGURE_OPTIONS_FILES=cmake/std/atdm/ATDMDevEnv.cmake,cmake/std/atdm/apps/sparc/SPARCTrilinosPackagesEnables.cmake
22
23 # Ensure that we don't set both Trilinos_PACKAGES and Trilinos_PACKAGE_ENABLES_FILE
24 if [ -z $Trilinos_PACKAGES ]; then
25 export Trilinos_PACKAGE_ENABLES_FILE=$WORKSPACE/Trilinos/cmake/std/atdm/apps/sparc/SPARCMiniTrilinosPackagesEnables.cmake
26 fi
27 fi
28
29 # Allow default setting for TPETRA_ASSUME_GPU_AWARE_MPI=0 in trilinos_jsrun
30 unset TPETRA_ASSUME_GPU_AWARE_MPI
31 atdm_config_ctest_regex_old="$ATDM_CONFIG_CTEST_REGEX"
32 export ATDM_CONFIG_CTEST_REGEX="$ATDM_CONFIG_CTEST_REGEX -E Adelus*"
33
34 echo
35 echo "======================================================================="
36 echo "***"
37 echo "*** Run update, configure, build and testing with non-CUDA-aware MPI"
38 echo "***"
39 echo
40
41 set -x
42 $WORKSPACE/Trilinos/cmake/ctest/drivers/atdm/ats2/local-driver-single-build.sh
43 set +x
44
45 export ATDM_CONFIG_CTEST_REGEX="$atdm_config_ctest_regex_old"
46
47 if [[ "${Trilinos_CTEST_RUN_GPU_AWARE_MPI}" == "1" ]]; then
48 echo
49 echo "======================================================================="
50 echo "***"
51 echo "*** Running the follow-up testing with CUDA-aware MPI"
52 echo "***"
53 echo
54 export CTEST_BUILD_NAME=${ATDM_CONFIG_BUILD_NAME}_cuda-aware-mpi
55 if [[ "${CTEST_TEST_TYPE}" == "Experimental" ]] ; then
56 export CTEST_BUILD_NAME="${CTEST_BUILD_NAME}-exp"
57 fi
58 export TPETRA_ASSUME_GPU_AWARE_MPI=1
59 export CTEST_START_WITH_EMPTY_BINARY_DIRECTORY=FALSE
60 export CTEST_DO_UPDATES=OFF
61 set -x
62 $WORKSPACE/Trilinos/cmake/ctest/drivers/atdm/ats2/local-driver-single-build.sh
63 set +x
64 fi
65
66 # NOTE: We allow the configure and build to be performed again in the
67 # follow-up CUDA-aware MPI build though they don't need to be. This so that
68 # developers that are looking on CDash will be able to see configure-related
69 # information associated with that build. We also need to run configure and
70 # build again to make the cdash_analyze_and_report.py tool not report this
71 # build as missing configure and build data. However, we don't do an update
72 # again because that would always give zero updates and it would confuse
73 # developers looking on CDash to see what changed from yesterday's build and
74 # see no updates were pulled. It is better to not do the update and not
75 # upload the empty Update.txt file and avoid that confusion.
76
77 # NOTE: Above, we put an '-exp' on the end of the cuda-aware-mpi build name to
78 # make it more clear that this is an experimental build!