Skip to content

Commit

Permalink
we can use -j 4 for make in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Nov 22, 2024
1 parent 8cb64e7 commit 800e307
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/burn_cell_metal_chem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Compile
run: |
cd unit_test/burn_cell_metal_chem
make -j 2
make -j 4
- name: Run and compare outputs for different Z values, also including cosmic ray ionization
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/burn_cell_primordial_chem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Compile and run
run: |
cd unit_test/burn_cell_primordial_chem
make -j 2
make -j 4
./main1d.gnu.DEBUG.ex inputs_primordial_chem amrex.fpe_trap_{invalid,zero,overflow}=1 > test.out
- name: Print backtrace
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/c-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: AMReX-Astro/cpp-linter-action@main
with:
build_path: 'unit_test/test_react'
make_options: '-j 2 USE_OMP=FALSE USE_MPI=FALSE USE_CUDA=FALSE DEBUG=TRUE'
make_options: '-j 4 USE_OMP=FALSE USE_MPI=FALSE USE_CUDA=FALSE DEBUG=TRUE'
ignore_files: 'amrex|util/gcem'
header_filter: '(/conductivity/|/constants/|/EOS/|/integration/|/interfaces/|/networks/|/neutrinos/|/nse_solver/|/opacity/|/rates/|/screening/|/util/|^\./).*\.H$'
config_file: ${GITHUB_WORKSPACE}/.clang-tidy
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/castro-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
export MICROPHYSICS_HOME=${PWD}
cd Castro/Exec/science/flame_wave/
make -j2 CCACHE=ccache USE_MPI=FALSE
make -j 4 CCACHE=ccache USE_MPI=FALSE
ccache -s
du -hs ~/.cache/ccache
Expand All @@ -64,7 +64,7 @@ jobs:
export MICROPHYSICS_HOME=${PWD}
cd Castro/Exec/science/subchandra/
make -j2 CCACHE=ccache USE_MPI=FALSE
make -j 4 CCACHE=ccache USE_MPI=FALSE
ccache -s
du -hs ~/.cache/ccache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/castro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
export MICROPHYSICS_HOME=${PWD}
cd Castro/Exec/science/flame_wave/
make -j2 CCACHE=ccache USE_MPI=FALSE
make -j 4 CCACHE=ccache USE_MPI=FALSE
ccache -s
du -hs ~/.cache/ccache
Expand All @@ -68,7 +68,7 @@ jobs:
export MICROPHYSICS_HOME=${PWD}
cd Castro/Exec/science/subchandra/
make -j2 CCACHE=ccache USE_MPI=FALSE
make -j 4 CCACHE=ccache USE_MPI=FALSE
ccache -s
du -hs ~/.cache/ccache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cmake_build_cell_primordial_chem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ jobs:
run: |
mkdir build && cd build
cmake .. -DBUILD_UNIT_TEST=true -DBUILD_AMReX=true
make -j2
make -j 4
ctest --output-on-failure
6 changes: 3 additions & 3 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ jobs:
run: |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
cd unit_test/test_react
make NETWORK_DIR=aprox13 USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 2
make NETWORK_DIR=aprox13 USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 4
- name: compile test_react (ignition_reaclib/URCA-simple)
run: |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
cd unit_test/test_react
make realclean
make NETWORK_DIR=ignition_reaclib/URCA-simple USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 2
make NETWORK_DIR=ignition_reaclib/URCA-simple USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 4
- name: compile test_nse_net (ase)
run: |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
cd unit_test/test_nse_net
make USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 2
make USE_CUDA=TRUE COMP=gnu USE_MPI=FALSE -j 4
2 changes: 1 addition & 1 deletion .github/workflows/macos_build_cell_metal_chem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
run: |
mkdir build && cd build
cmake .. -DBUILD_UNIT_TEST_MC=true -DBUILD_AMReX=true
make -j2
make -j 4
ctest --output-on-failure
2 changes: 1 addition & 1 deletion .github/workflows/macos_build_cell_primordial_chem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
run: |
mkdir build && cd build
cmake .. -DBUILD_UNIT_TEST_PC=true -DBUILD_AMReX=true
make -j2
make -j 4
ctest --output-on-failure
2 changes: 1 addition & 1 deletion .github/workflows/test_neutrinos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build the fextrema tool
run: |
cd external/amrex/Tools/Plotfile
make programs=fextrema -j 2
make programs=fextrema -j 4
- name: Compile
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_rhs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build the fextrema tool
run: |
cd external/amrex/Tools/Plotfile
make programs=fextrema -j 2
make programs=fextrema -j 4
- name: Compile, test_rhs (VODE, ignition_simple)
run: |
Expand Down

0 comments on commit 800e307

Please sign in to comment.