Skip to content

Commit 9221d5f

Browse files
committed
CI: 4 Cores Linux/Win, 3 Cores macOS
Increase build and test parallelism according to new increased core limits on public GH hosted runners.
1 parent 7e36813 commit 9221d5f

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

.github/workflows/clang_tidy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
cmake -S . -B build_clang_tidy \
3939
-DCMAKE_VERBOSE_MAKEFILE=ON \
40-
-DWarpX_DIMS="1;2;3;RZ" \
40+
-DWarpX_DIMS="1;2;RZ;3" \
4141
-DWarpX_MPI=ON \
4242
-DWarpX_COMPUTE=OMP \
4343
-DWarpX_PSATD=ON \
@@ -47,10 +47,10 @@ jobs:
4747
-DWarpX_PRECISION=SINGLE \
4848
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
4949
50-
cmake --build build_clang_tidy -j 2
50+
cmake --build build_clang_tidy -j 4
5151
5252
${{github.workspace}}/.github/workflows/source/makeMakefileForClangTidy.py --input ${{github.workspace}}/ccache.log.txt
53-
make -j2 --keep-going -f clang-tidy-ccache-misses.mak \
53+
make -j4 --keep-going -f clang-tidy-ccache-misses.mak \
5454
CLANG_TIDY=clang-tidy \
5555
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"
5656

.github/workflows/codeql.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ jobs:
7575
export CCACHE_MAXSIZE=100M
7676
ccache -z
7777
78-
$CMAKE --build build -j 2
78+
$CMAKE --build build -j 4
7979
8080
ccache -s
8181
du -hs ~/.cache/ccache
8282
8383
# Make sure CodeQL has something to do
8484
touch Source/Utils/WarpXVersion.cpp
8585
export CCACHE_DISABLE=1
86-
$CMAKE --build build -j 2
86+
$CMAKE --build build -j 4
8787
8888
- name: Perform CodeQL Analysis
8989
uses: github/codeql-action/analyze@v2

.github/workflows/cuda.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
-DWarpX_PSATD=ON \
7474
-DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \
7575
-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON
76-
cmake --build build_sp -j 2
76+
cmake --build build_sp -j 4
7777
7878
python3 -m pip install --upgrade pip
7979
python3 -m pip install --upgrade build packaging setuptools wheel
@@ -116,7 +116,7 @@ jobs:
116116
117117
git clone https://github.com/AMReX-Codes/amrex.git ../amrex
118118
cd ../amrex && git checkout --detach 296ed40e16ae1877640f5b78e9162dbd4ba1c279 && cd -
119-
make COMP=gcc QED=FALSE USE_MPI=TRUE USE_GPU=TRUE USE_OMP=FALSE USE_PSATD=TRUE USE_CCACHE=TRUE -j 2
119+
make COMP=gcc QED=FALSE USE_MPI=TRUE USE_GPU=TRUE USE_OMP=FALSE USE_PSATD=TRUE USE_CCACHE=TRUE -j 4
120120
121121
ccache -s
122122
du -hs ~/.cache/ccache
@@ -171,7 +171,7 @@ jobs:
171171
-DWarpX_PSATD=ON \
172172
-DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \
173173
-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON
174-
cmake --build build -j 2
174+
cmake --build build -j 4
175175
176176
# work-around for mpi4py 3.1.1 build system issue with using
177177
# a GNU-built Python executable with non-GNU Python modules

.github/workflows/hip.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
-DWarpX_OPENPMD=ON \
5757
-DWarpX_PRECISION=SINGLE \
5858
-DWarpX_PSATD=ON
59-
cmake --build build_sp -j 2
59+
cmake --build build_sp -j 4
6060
6161
export WARPX_MPI=OFF
6262
export PYWARPX_LIB_DIR=$PWD/build_sp/lib/site-packages/pywarpx/
@@ -116,7 +116,7 @@ jobs:
116116
-DWarpX_OPENPMD=ON \
117117
-DWarpX_PRECISION=DOUBLE \
118118
-DWarpX_PSATD=ON
119-
cmake --build build_2d -j 2
119+
cmake --build build_2d -j 4
120120
121121
export WARPX_MPI=OFF
122122
export PYWARPX_LIB_DIR=$PWD/build_2d/lib/site-packages/pywarpx/

.github/workflows/insitu.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
-DWarpX_COMPUTE=NOACC
2929
- name: Build
3030
run: |
31-
cmake --build build -j 2
31+
cmake --build build -j 4
3232
3333
ascent:
3434
name: Ascent
@@ -51,7 +51,7 @@ jobs:
5151
- name: Build
5252
run: |
5353
. /ascent_docker_setup_env.sh
54-
cmake --build build -j 2
54+
cmake --build build -j 4
5555
- name: Test
5656
run: |
5757
cp Examples/Physics_applications/laser_acceleration/inputs_3d .

.github/workflows/intel.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
-DWarpX_MPI=OFF \
5454
-DWarpX_OPENPMD=ON \
5555
-DWarpX_openpmd_internal=OFF
56-
cmake --build build_dp -j 2
56+
cmake --build build_dp -j 4
5757
5858
cmake -S . -B build_sp \
5959
-DCMAKE_VERBOSE_MAKEFILE=ON \
@@ -64,7 +64,7 @@ jobs:
6464
-DWarpX_OPENPMD=ON \
6565
-DWarpX_openpmd_internal=OFF \
6666
-DWarpX_PRECISION=SINGLE
67-
cmake --build build_sp -j 2
67+
cmake --build build_sp -j 4
6868
cmake --build build_sp --target pip_install
6969
7070
ccache -s
@@ -120,7 +120,7 @@ jobs:
120120
-DWarpX_MPI=OFF \
121121
-DWarpX_OPENPMD=ON \
122122
-DWarpX_PRECISION=SINGLE
123-
cmake --build build_sp -j 2
123+
cmake --build build_sp -j 4
124124
cmake --build build_sp --target pip_install
125125
126126
ccache -s
@@ -184,7 +184,7 @@ jobs:
184184
-DWarpX_MPI=OFF \
185185
-DWarpX_OPENPMD=ON \
186186
-DWarpX_PRECISION=SINGLE
187-
cmake --build build_sp -j 2
187+
cmake --build build_sp -j 4
188188
189189
ccache -s
190190
du -hs ~/.cache/ccache

.github/workflows/ubuntu.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
-DWarpX_EB=OFF \
3939
-DWarpX_MPI=OFF \
4040
-DWarpX_QED=OFF
41-
cmake --build build -j 2
41+
cmake --build build -j 4
4242
./build/bin/warpx.3d Examples/Physics_applications/laser_acceleration/inputs_3d
4343
./build/bin/warpx.rz Examples/Physics_applications/laser_acceleration/inputs_rz
4444
@@ -79,7 +79,7 @@ jobs:
7979
-DWarpX_EB=OFF \
8080
-DWarpX_PSATD=ON \
8181
-DWarpX_QED_TABLE_GEN=ON
82-
cmake --build build -j 2
82+
cmake --build build -j 4
8383
./build/bin/warpx.1d Examples/Physics_applications/laser_acceleration/inputs_1d
8484
./build/bin/warpx.2d Examples/Physics_applications/laser_acceleration/inputs_2d
8585
@@ -126,7 +126,7 @@ jobs:
126126
-DWarpX_PARTICLE_PRECISION=SINGLE \
127127
-DWarpX_QED_TABLE_GEN=ON
128128
129-
cmake --build build -j 2
129+
cmake --build build -j 4
130130
./build/bin/warpx.3d Examples/Physics_applications/laser_acceleration/inputs_3d
131131
./build/bin/warpx.rz Examples/Physics_applications/laser_acceleration/inputs_rz
132132
@@ -164,7 +164,7 @@ jobs:
164164
-DCMAKE_VERBOSE_MAKEFILE=ON \
165165
-DWarpX_APP=OFF \
166166
-DWarpX_LIB=OFF
167-
cmake --build build -j 2
167+
cmake --build build -j 4
168168
169169
ccache -s
170170
du -hs ~/.cache/ccache
@@ -208,7 +208,7 @@ jobs:
208208
-DWarpX_PSATD=ON \
209209
-DWarpX_PYTHON=ON \
210210
-DWarpX_QED_TABLE_GEN=ON
211-
cmake --build build -j 2 --target pip_install
211+
cmake --build build -j 4 --target pip_install
212212
213213
ccache -s
214214
du -hs ~/.cache/ccache

.github/workflows/windows.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
-DWarpX_MPI=OFF `
3939
-DWarpX_PYTHON=ON
4040
if(!$?) { Exit $LASTEXITCODE }
41-
cmake --build build --config Debug --parallel 2
41+
cmake --build build --config Debug --parallel 4
4242
if(!$?) { Exit $LASTEXITCODE }
4343
4444
python3 -m pip install --upgrade pip
@@ -96,7 +96,7 @@ jobs:
9696
-DWarpX_MPI=OFF ^
9797
-DWarpX_OPENPMD=ON
9898
if errorlevel 1 exit 1
99-
cmake --build build --config Release --parallel 2
99+
cmake --build build --config Release --parallel 4
100100
if errorlevel 1 exit 1
101101
102102
cmake --build build --config Release --target install

0 commit comments

Comments
 (0)