From fc1cfa496103ceada91840b94bb03ff24cd2553d Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Mon, 25 Nov 2024 11:01:40 -0500 Subject: [PATCH] we can use -j 4 for make in CI (#1674) --- .github/workflows/burn_cell_metal_chem.yml | 2 +- .github/workflows/burn_cell_primordial_chem.yml | 2 +- .github/workflows/c-linter.yml | 2 +- .github/workflows/castro-development.yml | 4 ++-- .github/workflows/castro.yml | 4 ++-- .github/workflows/cmake_build_cell_primordial_chem.yml | 2 +- .github/workflows/cuda.yml | 6 +++--- .github/workflows/macos_build_cell_metal_chem.yml | 2 +- .github/workflows/macos_build_cell_primordial_chem.yml | 2 +- .github/workflows/test_neutrinos.yml | 2 +- .github/workflows/test_rhs.yml | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/burn_cell_metal_chem.yml b/.github/workflows/burn_cell_metal_chem.yml index 6c587eebf2..13ec5f98ea 100644 --- a/.github/workflows/burn_cell_metal_chem.yml +++ b/.github/workflows/burn_cell_metal_chem.yml @@ -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: | diff --git a/.github/workflows/burn_cell_primordial_chem.yml b/.github/workflows/burn_cell_primordial_chem.yml index 04f04643e2..7b2ba7a781 100644 --- a/.github/workflows/burn_cell_primordial_chem.yml +++ b/.github/workflows/burn_cell_primordial_chem.yml @@ -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 diff --git a/.github/workflows/c-linter.yml b/.github/workflows/c-linter.yml index 56d6bc7235..30e4baa8c8 100644 --- a/.github/workflows/c-linter.yml +++ b/.github/workflows/c-linter.yml @@ -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 diff --git a/.github/workflows/castro-development.yml b/.github/workflows/castro-development.yml index 451f4c2037..273e32a7c6 100644 --- a/.github/workflows/castro-development.yml +++ b/.github/workflows/castro-development.yml @@ -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 @@ -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 diff --git a/.github/workflows/castro.yml b/.github/workflows/castro.yml index 0ea9864aca..4a5b1d58e8 100644 --- a/.github/workflows/castro.yml +++ b/.github/workflows/castro.yml @@ -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 @@ -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 diff --git a/.github/workflows/cmake_build_cell_primordial_chem.yml b/.github/workflows/cmake_build_cell_primordial_chem.yml index 844ab4c8d7..6063770722 100644 --- a/.github/workflows/cmake_build_cell_primordial_chem.yml +++ b/.github/workflows/cmake_build_cell_primordial_chem.yml @@ -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 diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index 7e418249a8..fab16b93fe 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -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 diff --git a/.github/workflows/macos_build_cell_metal_chem.yml b/.github/workflows/macos_build_cell_metal_chem.yml index 3758f43cae..7880dabafc 100644 --- a/.github/workflows/macos_build_cell_metal_chem.yml +++ b/.github/workflows/macos_build_cell_metal_chem.yml @@ -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 diff --git a/.github/workflows/macos_build_cell_primordial_chem.yml b/.github/workflows/macos_build_cell_primordial_chem.yml index 3e7698432d..0390c426c1 100644 --- a/.github/workflows/macos_build_cell_primordial_chem.yml +++ b/.github/workflows/macos_build_cell_primordial_chem.yml @@ -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 diff --git a/.github/workflows/test_neutrinos.yml b/.github/workflows/test_neutrinos.yml index 46cb99cd8c..4ab1a80cc8 100644 --- a/.github/workflows/test_neutrinos.yml +++ b/.github/workflows/test_neutrinos.yml @@ -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: | diff --git a/.github/workflows/test_rhs.yml b/.github/workflows/test_rhs.yml index 4654200513..21b4a9dcd8 100644 --- a/.github/workflows/test_rhs.yml +++ b/.github/workflows/test_rhs.yml @@ -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: |