Skip to content

Commit f4dc28a

Browse files
authored
Merge pull request #2359 from PDoakORNL/CI_knowns_its_nexus
CI aborts previous runs for PR and has more effective thread throttling.
2 parents e697c34 + a97fce7 commit f4dc28a

10 files changed

Lines changed: 32 additions & 18 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
library 'qmcpack_shared_jenkins'
22

3-
common_pipeline(name:"cpu", spack_path:"/var/lib/jenkins/spack", prefix:"ornl_oxygen_", ram_disk:true)
3+
common_pipeline(name:"cpu", spack_path:"/var/lib/jenkins/spack", prefix:"ornl_oxygen", workspace_root:"/scratch/jenkins", threads_per_flavor:8)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
library 'qmcpack_shared_jenkins'
22

3-
common_pipeline(name: "enable_cuda", spack_path:"/var/lib/jenkins/spack", prefix:"ornl_oxygen_", ram_disk:true)
3+
common_pipeline(name: "enable_cuda", spack_path:"/var/lib/jenkins/spack", prefix:"ornl_oxygen", workspace_root:"/scratch/jenkins", threads_per_flavor:8)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
library 'qmcpack_shared_jenkins'
22

3-
common_pipeline(name:"gpu", spack_path:"/var/lib/jenkins/spack", prefix:"ornl_oxygen_", ram_disk:true)
3+
common_pipeline(name:"gpu", spack_path:"/var/lib/jenkins/spack", prefix:"ornl_oxygen", workspace_root:"/scratch/jenkins", threads_per_flavor:8)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
library 'qmcpack_shared_jenkins'
22

3-
common_pipeline(name:"cpu", spack_path:"/var/lib/jenkins/spack", prefix:"vm_", ram_disk:"false")
3+
common_pipeline(name:"cpu", spack_path:"/var/lib/jenkins/spack", prefix:"vm", workspace_root:"${env.JENKINS_HOME}/workspace/test_root")
44

tests/test_automation/jenkins_ornl_oxygen.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ cd build_${1}_${2}
4646

4747
which cmake
4848
pwd
49-
echo "cmake ${QMCNSPACE_FLAG} ${QMCPRECISION_FLAG} -DENABLE_SOA=1 -DCMAKE_C_COMPILER=\"mpicc\" -DCMAKE_CXX_COMPILER=\"mpicxx\" ${QMC_IMMUTABLE_FLAGS} -DQMC_NO_SLOW_CUSTOM_TESTING_COMMANDS=1 ../.. 2>&1 | tee cmake.out"
49+
echo "cmake ${QMCNSPACE_FLAG} ${QMCPRECISION_FLAG} -DENABLE_SOA=1 -DCMAKE_C_COMPILER=\"mpicc\" -DCMAKE_CXX_COMPILER=\"mpicxx\" ${QMC_IMMUTABLE_FLAGS} -DQMC_NO_SLOW_CUSTOM_TESTING_COMMANDS=1 ${PARENT_WORKSPACE} 2>&1 | tee cmake.out"
5050

5151
# this keeps tee from eating the exit status
5252
set -o pipefail
5353

54-
cmake ${QMCNSPACE_FLAG} ${QMCPRECISION_FLAG} -DENABLE_SOA=1 -DCMAKE_C_COMPILER="mpicc" -DCMAKE_CXX_COMPILER="mpicxx" ${QMC_IMMUTABLE_FLAGS} -DQMC_NO_SLOW_CUSTOM_TESTING_COMMANDS=1 ../.. 2>&1 | tee ${1}_${2}_cmake.out
54+
cmake ${QMCNSPACE_FLAG} ${QMCPRECISION_FLAG} -DENABLE_SOA=1 -DCMAKE_C_COMPILER="mpicc" -DCMAKE_CXX_COMPILER="mpicxx" ${QMC_IMMUTABLE_FLAGS} -DQMC_NO_SLOW_CUSTOM_TESTING_COMMANDS=1 ${PARENT_WORKSPACE} 2>&1 | tee ${1}_${2}_cmake.out
5555
if [[ $? -ne 0 ]] ; then
5656
exit 1
5757
fi

tests/test_automation/ornl_oxygen_spack_env_cpu.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#/bin/bash
22

3-
. $SPACK_ROOT/share/spack/setup-env.sh
4-
5-
. ../tests/test_automation/spack_supported_package_versions.sh
3+
SRC="${BASH_SOURCE[0]}"
4+
SRC_DIR="$( cd -P "$( dirname "$SRC" )" >/dev/null 2>&1 && pwd )"
5+
. ${SRC_DIR}/start_spack_env.sh
66

77
#temporary change from clang$llvm_vnew
88

tests/test_automation/ornl_oxygen_spack_env_enable_cuda.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#/bin/bash
22

3-
. $SPACK_ROOT/share/spack/setup-env.sh
4-
5-
. ../tests/test_automation/spack_supported_package_versions.sh
3+
SRC="${BASH_SOURCE[0]}"
4+
SRC_DIR="$( cd -P "$( dirname "$SRC" )" >/dev/null 2>&1 && pwd )"
5+
. ${SRC_DIR}/start_spack_env.sh
66

77
QMC_IMMUTABLE_FLAGS="-DENABLE_CUDA=1"
88

tests/test_automation/ornl_oxygen_spack_env_gpu.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#/bin/bash
22

3-
. $SPACK_ROOT/share/spack/setup-env.sh
4-
5-
. ../tests/test_automation/spack_supported_package_versions.sh
3+
SRC="${BASH_SOURCE[0]}"
4+
SRC_DIR="$( cd -P "$( dirname "$SRC" )" >/dev/null 2>&1 && pwd )"
5+
. ${SRC_DIR}/start_spack_env.sh
66

77
QMC_IMMUTABLE_FLAGS="-DQMC_CUDA=1"
88

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
# This shared script fragment start spack and loads in QMCPACKS currently supported versions of compilers
4+
# and libraries
5+
6+
. $SPACK_ROOT/share/spack/setup-env.sh
7+
8+
# This is to deal with the fact that we don't know the relationship between the working directory
9+
# and checkout directory in a relative way.
10+
# this doesn't deal with symlinks
11+
SRC="${BASH_SOURCE[0]}"
12+
SRC_DIR="$( cd -P "$( dirname "$SRC" )" >/dev/null 2>&1 && pwd )"
13+
14+
. ${SRC_DIR}/spack_supported_package_versions.sh

tests/test_automation/vm_spack_env_cpu.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
. $SPACK_ROOT/share/spack/setup-env.sh
4-
5-
. ../tests/test_automation/spack_supported_package_versions.sh
3+
SRC="${BASH_SOURCE[0]}"
4+
SRC_DIR="$( cd -P "$( dirname "$SRC" )" >/dev/null 2>&1 && pwd )"
5+
. ${SRC_DIR}/start_spack_env.sh
66

77
spack load gcc@$gcc_vnew%gcc@$gcc_vold
88
spack load boost@$boost_vnew%gcc@$gcc_vnew

0 commit comments

Comments
 (0)