Skip to content

Commit

Permalink
CI: 4 Cores Linux/Win, 3 Cores macOS (ECP-WarpX#4673)
Browse files Browse the repository at this point in the history
Increase build and test parallelism according to new increased core
limits on public GH hosted runners.
  • Loading branch information
ax3l authored Feb 6, 2024
1 parent 7e36813 commit 83e16ee
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/clang_tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
cmake -S . -B build_clang_tidy \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DWarpX_DIMS="1;2;3;RZ" \
-DWarpX_DIMS="1;2;RZ;3" \
-DWarpX_MPI=ON \
-DWarpX_COMPUTE=OMP \
-DWarpX_PSATD=ON \
Expand All @@ -47,10 +47,10 @@ jobs:
-DWarpX_PRECISION=SINGLE \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build build_clang_tidy -j 2
cmake --build build_clang_tidy -j 4
${{github.workspace}}/.github/workflows/source/makeMakefileForClangTidy.py --input ${{github.workspace}}/ccache.log.txt
make -j2 --keep-going -f clang-tidy-ccache-misses.mak \
make -j4 --keep-going -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ jobs:
export CCACHE_MAXSIZE=100M
ccache -z
$CMAKE --build build -j 2
$CMAKE --build build -j 4
ccache -s
du -hs ~/.cache/ccache
# Make sure CodeQL has something to do
touch Source/Utils/WarpXVersion.cpp
export CCACHE_DISABLE=1
$CMAKE --build build -j 2
$CMAKE --build build -j 4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
-DWarpX_PSATD=ON \
-DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \
-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON
cmake --build build_sp -j 2
cmake --build build_sp -j 4
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build packaging setuptools wheel
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
git clone https://github.com/AMReX-Codes/amrex.git ../amrex
cd ../amrex && git checkout --detach 296ed40e16ae1877640f5b78e9162dbd4ba1c279 && cd -
make COMP=gcc QED=FALSE USE_MPI=TRUE USE_GPU=TRUE USE_OMP=FALSE USE_PSATD=TRUE USE_CCACHE=TRUE -j 2
make COMP=gcc QED=FALSE USE_MPI=TRUE USE_GPU=TRUE USE_OMP=FALSE USE_PSATD=TRUE USE_CCACHE=TRUE -j 4
ccache -s
du -hs ~/.cache/ccache
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
-DWarpX_PSATD=ON \
-DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \
-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON
cmake --build build -j 2
cmake --build build -j 4
# work-around for mpi4py 3.1.1 build system issue with using
# a GNU-built Python executable with non-GNU Python modules
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
-DWarpX_OPENPMD=ON \
-DWarpX_PRECISION=SINGLE \
-DWarpX_PSATD=ON
cmake --build build_sp -j 2
cmake --build build_sp -j 4
export WARPX_MPI=OFF
export PYWARPX_LIB_DIR=$PWD/build_sp/lib/site-packages/pywarpx/
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
-DWarpX_OPENPMD=ON \
-DWarpX_PRECISION=DOUBLE \
-DWarpX_PSATD=ON
cmake --build build_2d -j 2
cmake --build build_2d -j 4
export WARPX_MPI=OFF
export PYWARPX_LIB_DIR=$PWD/build_2d/lib/site-packages/pywarpx/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/insitu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
-DWarpX_COMPUTE=NOACC
- name: Build
run: |
cmake --build build -j 2
cmake --build build -j 4
ascent:
name: Ascent
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Build
run: |
. /ascent_docker_setup_env.sh
cmake --build build -j 2
cmake --build build -j 4
- name: Test
run: |
cp Examples/Physics_applications/laser_acceleration/inputs_3d .
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
-DWarpX_MPI=OFF \
-DWarpX_OPENPMD=ON \
-DWarpX_openpmd_internal=OFF
cmake --build build_dp -j 2
cmake --build build_dp -j 4
cmake -S . -B build_sp \
-DCMAKE_VERBOSE_MAKEFILE=ON \
Expand All @@ -64,7 +64,7 @@ jobs:
-DWarpX_OPENPMD=ON \
-DWarpX_openpmd_internal=OFF \
-DWarpX_PRECISION=SINGLE
cmake --build build_sp -j 2
cmake --build build_sp -j 4
cmake --build build_sp --target pip_install
ccache -s
Expand Down Expand Up @@ -120,7 +120,7 @@ jobs:
-DWarpX_MPI=OFF \
-DWarpX_OPENPMD=ON \
-DWarpX_PRECISION=SINGLE
cmake --build build_sp -j 2
cmake --build build_sp -j 4
cmake --build build_sp --target pip_install
ccache -s
Expand Down Expand Up @@ -184,7 +184,7 @@ jobs:
-DWarpX_MPI=OFF \
-DWarpX_OPENPMD=ON \
-DWarpX_PRECISION=SINGLE
cmake --build build_sp -j 2
cmake --build build_sp -j 4
ccache -s
du -hs ~/.cache/ccache
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
-DWarpX_EB=OFF \
-DWarpX_MPI=OFF \
-DWarpX_QED=OFF
cmake --build build -j 2
cmake --build build -j 4
./build/bin/warpx.3d Examples/Physics_applications/laser_acceleration/inputs_3d
./build/bin/warpx.rz Examples/Physics_applications/laser_acceleration/inputs_rz
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
-DWarpX_EB=OFF \
-DWarpX_PSATD=ON \
-DWarpX_QED_TABLE_GEN=ON
cmake --build build -j 2
cmake --build build -j 4
./build/bin/warpx.1d Examples/Physics_applications/laser_acceleration/inputs_1d
./build/bin/warpx.2d Examples/Physics_applications/laser_acceleration/inputs_2d
Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
-DWarpX_PARTICLE_PRECISION=SINGLE \
-DWarpX_QED_TABLE_GEN=ON
cmake --build build -j 2
cmake --build build -j 4
./build/bin/warpx.3d Examples/Physics_applications/laser_acceleration/inputs_3d
./build/bin/warpx.rz Examples/Physics_applications/laser_acceleration/inputs_rz
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DWarpX_APP=OFF \
-DWarpX_LIB=OFF
cmake --build build -j 2
cmake --build build -j 4
ccache -s
du -hs ~/.cache/ccache
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
-DWarpX_PSATD=ON \
-DWarpX_PYTHON=ON \
-DWarpX_QED_TABLE_GEN=ON
cmake --build build -j 2 --target pip_install
cmake --build build -j 4 --target pip_install
ccache -s
du -hs ~/.cache/ccache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
-DWarpX_MPI=OFF `
-DWarpX_PYTHON=ON
if(!$?) { Exit $LASTEXITCODE }
cmake --build build --config Debug --parallel 2
cmake --build build --config Debug --parallel 4
if(!$?) { Exit $LASTEXITCODE }
python3 -m pip install --upgrade pip
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
-DWarpX_MPI=OFF ^
-DWarpX_OPENPMD=ON
if errorlevel 1 exit 1
cmake --build build --config Release --parallel 2
cmake --build build --config Release --parallel 4
if errorlevel 1 exit 1
cmake --build build --config Release --target install
Expand Down

0 comments on commit 83e16ee

Please sign in to comment.