Skip to content

Commit fc1cfa4

Browse files
authored
we can use -j 4 for make in CI (#1674)
1 parent abec47a commit fc1cfa4

11 files changed

+15
-15
lines changed

.github/workflows/burn_cell_metal_chem.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Compile
3232
run: |
3333
cd unit_test/burn_cell_metal_chem
34-
make -j 2
34+
make -j 4
3535
3636
- name: Run and compare outputs for different Z values, also including cosmic ray ionization
3737
run: |

.github/workflows/burn_cell_primordial_chem.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Compile and run
3232
run: |
3333
cd unit_test/burn_cell_primordial_chem
34-
make -j 2
34+
make -j 4
3535
./main1d.gnu.DEBUG.ex inputs_primordial_chem amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
3636
3737
- name: Print backtrace

.github/workflows/c-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: AMReX-Astro/cpp-linter-action@main
2727
with:
2828
build_path: 'unit_test/test_react'
29-
make_options: '-j 2 USE_OMP=FALSE USE_MPI=FALSE USE_CUDA=FALSE DEBUG=TRUE'
29+
make_options: '-j 4 USE_OMP=FALSE USE_MPI=FALSE USE_CUDA=FALSE DEBUG=TRUE'
3030
ignore_files: 'amrex|util/gcem'
3131
header_filter: '(/conductivity/|/constants/|/EOS/|/integration/|/interfaces/|/networks/|/neutrinos/|/nse_solver/|/opacity/|/rates/|/screening/|/util/|^\./).*\.H$'
3232
config_file: ${GITHUB_WORKSPACE}/.clang-tidy

.github/workflows/castro-development.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
export MICROPHYSICS_HOME=${PWD}
4848
4949
cd Castro/Exec/science/flame_wave/
50-
make -j2 CCACHE=ccache USE_MPI=FALSE
50+
make -j 4 CCACHE=ccache USE_MPI=FALSE
5151
5252
ccache -s
5353
du -hs ~/.cache/ccache
@@ -64,7 +64,7 @@ jobs:
6464
export MICROPHYSICS_HOME=${PWD}
6565
6666
cd Castro/Exec/science/subchandra/
67-
make -j2 CCACHE=ccache USE_MPI=FALSE
67+
make -j 4 CCACHE=ccache USE_MPI=FALSE
6868
6969
ccache -s
7070
du -hs ~/.cache/ccache

.github/workflows/castro.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
export MICROPHYSICS_HOME=${PWD}
5252
5353
cd Castro/Exec/science/flame_wave/
54-
make -j2 CCACHE=ccache USE_MPI=FALSE
54+
make -j 4 CCACHE=ccache USE_MPI=FALSE
5555
5656
ccache -s
5757
du -hs ~/.cache/ccache
@@ -68,7 +68,7 @@ jobs:
6868
export MICROPHYSICS_HOME=${PWD}
6969
7070
cd Castro/Exec/science/subchandra/
71-
make -j2 CCACHE=ccache USE_MPI=FALSE
71+
make -j 4 CCACHE=ccache USE_MPI=FALSE
7272
7373
ccache -s
7474
du -hs ~/.cache/ccache

.github/workflows/cmake_build_cell_primordial_chem.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
run: |
1919
mkdir build && cd build
2020
cmake .. -DBUILD_UNIT_TEST=true -DBUILD_AMReX=true
21-
make -j2
21+
make -j 4
2222
ctest --output-on-failure

.github/workflows/cuda.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ jobs:
3232
run: |
3333
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
3434
cd unit_test/test_react
35-
make NETWORK_DIR=aprox13 USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 2
35+
make NETWORK_DIR=aprox13 USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 4
3636
3737
- name: compile test_react (ignition_reaclib/URCA-simple)
3838
run: |
3939
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
4040
cd unit_test/test_react
4141
make realclean
42-
make NETWORK_DIR=ignition_reaclib/URCA-simple USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 2
42+
make NETWORK_DIR=ignition_reaclib/URCA-simple USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 4
4343
4444
- name: compile test_nse_net (ase)
4545
run: |
4646
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
4747
cd unit_test/test_nse_net
48-
make USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 2
48+
make USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 4

.github/workflows/macos_build_cell_metal_chem.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
run: |
1818
mkdir build && cd build
1919
cmake .. -DBUILD_UNIT_TEST_MC=true -DBUILD_AMReX=true
20-
make -j2
20+
make -j 4
2121
ctest --output-on-failure

.github/workflows/macos_build_cell_primordial_chem.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
run: |
1818
mkdir build && cd build
1919
cmake .. -DBUILD_UNIT_TEST_PC=true -DBUILD_AMReX=true
20-
make -j2
20+
make -j 4
2121
ctest --output-on-failure

.github/workflows/test_neutrinos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Build the fextrema tool
3030
run: |
3131
cd external/amrex/Tools/Plotfile
32-
make programs=fextrema -j 2
32+
make programs=fextrema -j 4
3333
3434
- name: Compile
3535
run: |

0 commit comments

Comments
 (0)