forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into rjn-merge2
- Loading branch information
Showing
836 changed files
with
21,487 additions
and
9,224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,17 @@ | |
pool: | ||
vmImage: 'ubuntu-20.04' | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- development | ||
pr: | ||
autoCancel: true | ||
drafts: false | ||
paths: | ||
exclude: | ||
- Docs | ||
- '**/*.rst' | ||
|
||
jobs: | ||
- job: | ||
|
@@ -31,7 +39,6 @@ jobs: | |
# Cartesian 3D | ||
cartesian_3d: | ||
WARPX_CMAKE_FLAGS: -DWarpX_DIMS=3 -DWarpX_FFT=ON -DWarpX_PYTHON=ON | ||
WARPX_HEFFTE: 'TRUE' | ||
# Cylindrical RZ | ||
cylindrical_rz: | ||
WARPX_CMAKE_FLAGS: -DWarpX_DIMS=RZ -DWarpX_FFT=ON -DWarpX_PYTHON=ON | ||
|
@@ -59,18 +66,8 @@ jobs: | |
cacheHitVar: CCACHE_CACHE_RESTORED | ||
displayName: Cache Ccache Objects | ||
|
||
- task: Cache@2 | ||
continueOnError: true | ||
inputs: | ||
key: 'Python3 | "$(System.JobName)" | .azure-pipelines.yml' | ||
restoreKeys: | | ||
Python3 | "$(System.JobName)" | .azure-pipelines.yml | ||
path: /home/vsts/.local/lib/python3.8 | ||
cacheHitVar: PYTHON38_CACHE_RESTORED | ||
displayName: Cache Python Libraries | ||
|
||
- bash: | | ||
set -eu -o pipefail | ||
set -o nounset errexit pipefail | ||
cat /proc/cpuinfo | grep "model name" | sort -u | ||
df -h | ||
echo 'Acquire::Retries "3";' | sudo tee /etc/apt/apt.conf.d/80-retries | ||
|
@@ -83,7 +80,7 @@ jobs: | |
python3 -m pip install --upgrade pip | ||
python3 -m pip install --upgrade build | ||
python3 -m pip install --upgrade packaging | ||
python3 -m pip install --upgrade setuptools | ||
python3 -m pip install --upgrade setuptools[core] | ||
python3 -m pip install --upgrade wheel | ||
python3 -m pip install --upgrade virtualenv | ||
python3 -m pip install --upgrade pipx | ||
|
@@ -114,17 +111,6 @@ jobs: | |
-DCMAKE_CXX_STANDARD=17 \ | ||
-Duse_cmake_find_lapack=ON -Dbuild_tests=OFF -DCMAKE_VERBOSE_MAKEFILE=ON | ||
fi | ||
if [ "${WARPX_HEFFTE:-FALSE}" == "TRUE" ]; then | ||
cmake-easyinstall --prefix=/usr/local git+https://github.com/icl-utk-edu/[email protected] \ | ||
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \ | ||
-DCMAKE_CXX_STANDARD=17 -DHeffte_ENABLE_DOXYGEN=OFF \ | ||
-DHeffte_ENABLE_FFTW=ON -DHeffte_ENABLE_TESTING=OFF \ | ||
-DHeffte_ENABLE_CUDA=OFF -DHeffte_ENABLE_ROCM=OFF \ | ||
-DHeffte_ENABLE_ONEAPI=OFF -DHeffte_ENABLE_MKL=OFF \ | ||
-DHeffte_ENABLE_PYTHON=OFF -DHeffte_ENABLE_FORTRAN=OFF \ | ||
-DHeffte_ENABLE_MAGMA=OFF \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON | ||
fi | ||
# Python modules required for test analysis | ||
python3 -m pip install --upgrade -r Regression/requirements.txt | ||
python3 -m pip cache purge | ||
|
@@ -139,25 +125,50 @@ jobs: | |
displayName: 'Install dependencies' | ||
- bash: | | ||
set -eu -o pipefail | ||
# set options | ||
set -o nounset errexit pipefail | ||
# display disk space usage | ||
df -h | ||
# configure | ||
export AMReX_CMAKE_FLAGS="-DAMReX_ASSERTIONS=ON -DAMReX_TESTING=ON" | ||
cmake -S . -B build \ | ||
${AMReX_CMAKE_FLAGS} \ | ||
${WARPX_CMAKE_FLAGS} \ | ||
-DWarpX_TEST_CLEANUP=ON \ | ||
-DWarpX_TEST_FPETRAP=ON | ||
export WARPX_TEST_FLAGS="-DWarpX_TEST_CLEANUP=ON -DWarpX_TEST_FPETRAP=ON -DWarpX_BACKTRACE_INFO=ON" | ||
cmake -S . -B build \ | ||
${AMReX_CMAKE_FLAGS} \ | ||
${WARPX_CMAKE_FLAGS} \ | ||
${WARPX_TEST_FLAGS} | ||
# build | ||
cmake --build build -j 2 | ||
# display disk space usage | ||
df -h | ||
displayName: 'Build' | ||
- bash: | | ||
set -eu -o pipefail | ||
# run tests (exclude pytest.AMReX when running Python tests) | ||
ctest --test-dir build --output-on-failure -E AMReX | ||
# set options | ||
set -o nounset errexit pipefail | ||
# determine if the build was triggered by a push to the development branch | ||
if [[ "$(Build.SourceBranch)" == "refs/heads/development" ]]; then | ||
# run tests (exclude pytest.AMReX when running Python tests) | ||
# and submit results to CDash as Experimental | ||
ctest --test-dir build --output-on-failure -E AMReX \ | ||
-D ExperimentalTest -D ExperimentalSubmit | ||
else | ||
# run tests (exclude pytest.AMReX when running Python tests) | ||
ctest --test-dir build --output-on-failure -E AMReX | ||
fi | ||
displayName: 'Test' | ||
- bash: | | ||
# set options | ||
set -o nounset errexit pipefail | ||
# find and print backtrace | ||
find build/bin/ -type f -name "Backtrace*" \ | ||
-exec echo -e "\nBacktrace\n---------\n{}\n---------" \; \ | ||
-exec cat {} \; | ||
displayName: 'Logs' | ||
condition: always() | ||
- bash: | | ||
# clean out so the Post-job Cache "tar" command has more disk space available | ||
rm -rf build | ||
displayName: 'Clean Build Directory' | ||
condition: always() |
Oops, something went wrong.