Skip to content

Commit

Permalink
Revert workflow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni committed Nov 18, 2024
1 parent fbaa6f2 commit cf51047
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 71 deletions.
14 changes: 12 additions & 2 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ pr:
paths:
exclude:
- Docs
- .github/workflows/**
- .azure-pipelines.yml

jobs:
- job:
Expand All @@ -40,6 +38,7 @@ 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
Expand Down Expand Up @@ -122,6 +121,17 @@ 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/heffte.git@v2.4.0 \
-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
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/clang_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches:
- "development"
workflow_run:
workflows: [PR analysis]
types:
- completed
pull_request:
paths-ignore:
- "Docs/**"

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-clangsanitizers
Expand All @@ -18,7 +17,7 @@ jobs:
name: Clang UB sanitizer
runs-on: ubuntu-22.04
container: ubuntu:23.10
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
env:
CC: clang
CXX: clang++
Expand Down Expand Up @@ -84,7 +83,7 @@ jobs:
name: Clang thread sanitizer
runs-on: ubuntu-22.04
container: ubuntu:23.10
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
env:
CC: clang
CXX: clang++
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/clang_tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches:
- "development"
workflow_run:
workflows: [PR analysis]
types:
- completed
pull_request:
paths-ignore:
- "Docs/**"

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-clangtidy
Expand All @@ -21,7 +20,7 @@ jobs:
name: clang-tidy-${{ matrix.dim }}D
runs-on: ubuntu-22.04
timeout-minutes: 180
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ name: 🔍 CodeQL

on:
push:
branches:
- "development"
workflow_run:
workflows: [PR analysis]
types:
- completed
branches: [ "development" ]
pull_request:
branches: [ "development" ]
schedule:
- cron: "27 3 * * 0"

Expand All @@ -19,7 +16,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
permissions:
actions: read
contents: read
Expand Down
26 changes: 18 additions & 8 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches:
- "development"
workflow_run:
workflows: [PR analysis]
types:
- completed
pull_request:
paths-ignore:
- "Docs/**"

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-cuda
Expand All @@ -21,7 +20,7 @@ jobs:
build_nvcc:
name: NVCC 11.3 SP
runs-on: ubuntu-20.04
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
env:
CXXFLAGS: "-Werror"
CMAKE_GENERATOR: Ninja
Expand Down Expand Up @@ -63,6 +62,16 @@ jobs:
-DBUILD_CLI_TOOLS=OFF \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_VERBOSE_MAKEFILE=ON
cmake-easyinstall --prefix=/usr/local \
git+https://github.com/icl-utk-edu/heffte.git@v2.4.0 \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_CXX_STANDARD=17 -DHeffte_ENABLE_DOXYGEN=OFF \
-DHeffte_ENABLE_FFTW=OFF -DHeffte_ENABLE_TESTING=OFF \
-DHeffte_ENABLE_CUDA=ON -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
- name: build WarpX
run: |
export CCACHE_COMPRESS=1
Expand All @@ -83,6 +92,7 @@ jobs:
-DWarpX_openpmd_internal=OFF \
-DWarpX_PRECISION=SINGLE \
-DWarpX_FFT=ON \
-DWarpX_HEFFTE=ON \
-DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \
-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON
cmake --build build_sp -j 4
Expand All @@ -102,7 +112,7 @@ jobs:
build_nvcc_gnumake:
name: NVCC 11.8.0 GNUmake
runs-on: ubuntu-20.04
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand All @@ -127,7 +137,7 @@ jobs:
which nvcc || echo "nvcc not in PATH!"
git clone https://github.com/AMReX-Codes/amrex.git ../amrex
cd ../amrex && git checkout --detach 456c93c7d9512f1cdffac0574973d7df41417898 && cd -
cd ../amrex && git checkout --detach 4b703fec6c2ff983e465c8cef0cc4947231edb07 && cd -
make COMP=gcc QED=FALSE USE_MPI=TRUE USE_GPU=TRUE USE_OMP=FALSE USE_FFT=TRUE USE_CCACHE=TRUE -j 4
ccache -s
Expand All @@ -136,7 +146,7 @@ jobs:
build_nvhpc24-1-nvcc:
name: NVHPC@24.1 NVCC/NVC++ Release [tests]
runs-on: ubuntu-20.04
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
#env:
# # For NVHPC, Ninja is slower than the default:
# CMAKE_GENERATOR: Ninja
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/dependencies/hip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,16 @@ sudo curl -L -o /usr/local/bin/cmake-easyinstall https://raw.githubusercontent.c
sudo chmod a+x /usr/local/bin/cmake-easyinstall
export CEI_SUDO="sudo"
export CEI_TMP="/tmp/cei"

# heFFTe
#
cmake-easyinstall --prefix=/usr/local \
git+https://github.com/icl-utk-edu/heffte.git@v2.4.0 \
-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache) \
-DCMAKE_CXX_STANDARD=17 -DHeffte_ENABLE_DOXYGEN=OFF \
-DHeffte_ENABLE_FFTW=OFF -DHeffte_ENABLE_TESTING=OFF \
-DHeffte_ENABLE_CUDA=OFF -DHeffte_ENABLE_ROCM=ON \
-DHeffte_ENABLE_ONEAPI=OFF -DHeffte_ENABLE_MKL=OFF \
-DHeffte_ENABLE_PYTHON=OFF -DHeffte_ENABLE_FORTRAN=OFF \
-DHeffte_ENABLE_MAGMA=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON
17 changes: 9 additions & 8 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches:
- "development"
workflow_run:
workflows: [PR analysis]
types:
- completed
pull_request:
paths-ignore:
- "Docs/**"

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-hip
Expand All @@ -20,7 +19,7 @@ jobs:
env:
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
CMAKE_GENERATOR: Ninja
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down Expand Up @@ -62,7 +61,8 @@ jobs:
-DWarpX_MPI=ON \
-DWarpX_OPENPMD=ON \
-DWarpX_PRECISION=SINGLE \
-DWarpX_FFT=ON
-DWarpX_FFT=ON \
-DWarpX_HEFFTE=ON
cmake --build build_sp -j 4
export WARPX_MPI=OFF
Expand All @@ -79,7 +79,7 @@ jobs:
env:
CXXFLAGS: "-Werror -Wno-deprecated-declarations -Wno-error=pass-failed"
CMAKE_GENERATOR: Ninja
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down Expand Up @@ -122,7 +122,8 @@ jobs:
-DWarpX_MPI=ON \
-DWarpX_OPENPMD=ON \
-DWarpX_PRECISION=DOUBLE \
-DWarpX_FFT=ON
-DWarpX_FFT=ON \
-DWarpX_HEFFTE=ON
cmake --build build_2d -j 4
export WARPX_MPI=OFF
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/insitu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches:
- "development"
workflow_run:
workflows: [PR analysis]
types:
- completed
pull_request:
paths-ignore:
- "Docs/**"

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-insituvis
Expand All @@ -17,7 +16,7 @@ jobs:
sensei:
name: SENSEI
runs-on: ubuntu-20.04
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
env:
CXX: clang++
CC: clang
Expand All @@ -43,7 +42,7 @@ jobs:
ascent:
name: Ascent
runs-on: ubuntu-20.04
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
env:
CXX: g++
CC: gcc
Expand Down Expand Up @@ -83,7 +82,7 @@ jobs:
catalyst:
name: Catalyst
runs-on: ubuntu-22.04
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
env:
CXX: g++
CC: gcc
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches:
- "development"
workflow_run:
workflows: [PR analysis]
types:
- completed
pull_request:
paths-ignore:
- "Docs/**"

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-intel
Expand All @@ -19,7 +18,7 @@ jobs:
build_icc:
name: oneAPI ICC SP&DP
runs-on: ubuntu-20.04
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
# For oneAPI, Ninja is slower than the default:
#env:
# CMAKE_GENERATOR: Ninja
Expand Down Expand Up @@ -87,7 +86,7 @@ jobs:
CXXFLAGS: "-Werror -Wno-error=pass-failed -Wno-tautological-constant-compare"
# For oneAPI, Ninja is slower than the default:
# CMAKE_GENERATOR: Ninja
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down Expand Up @@ -152,7 +151,7 @@ jobs:
CXXFLAGS: "-Werror -Wno-tautological-constant-compare"
# For oneAPI, Ninja is slower than the default:
# CMAKE_GENERATOR: Ninja
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: install dependencies
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ on:
push:
branches:
- "development"
workflow_run:
workflows: [PR analysis]
types:
- completed
pull_request:
paths-ignore:
- "Docs/**"

concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-macos
Expand All @@ -17,8 +16,7 @@ jobs:
build_appleclang:
name: AppleClang
runs-on: macos-latest
if: 0
#if: ${{ github.event.pull_request.draft == false && github.event.workflow_run.outputs.skip == "false" }}
if: github.event.pull_request.draft == false
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: TRUE
# For macOS, Ninja is slower than the default:
Expand Down
Loading

0 comments on commit cf51047

Please sign in to comment.