Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions: 4 vCPUs are available now on Ubuntu and Windows #3703

Merged
merged 2 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
export AMREX_HOME=${PWD}
export MICROPHYSICS_HOME=${PWD}/Microphysics
cd Castro/Exec/hydro_tests/Sedov/
make -j2 CCACHE=ccache USE_MPI=FALSE
make -j4 CCACHE=ccache USE_MPI=FALSE

ccache -s
du -hs ~/.cache/ccache
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
-DWarpX_OPENPMD=OFF \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build WarpX/build -j 2
cmake --build WarpX/build -j 4

ccache -s
du -hs ~/.cache/ccache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ascent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ jobs:
- name: Build
run: |
. /ascent_docker_setup_env.sh
cmake --build build -j 2
cmake --build build -j 4

12 changes: 6 additions & 6 deletions .github/workflows/bittree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cd ${{ github.workspace }}/bittree
python setup.py library --dim 2 --prefix ${{ github.workspace }}/libbittree
cd build
make -j2
make -j4
make install
- name: Build and Run Test
run: |
Expand All @@ -47,12 +47,12 @@ jobs:

export AMREX_BITTREE_HOME=${{ github.workspace }}/libbittree
cd ${{ github.workspace }}/Tests/Amr/Advection_AmrCore/Exec
make -j2 USE_MPI=TRUE USE_BITTREE=TRUE DIM=2 TEST=TRUE \
make -j4 USE_MPI=TRUE USE_BITTREE=TRUE DIM=2 TEST=TRUE \
CCACHE=ccache
mpiexec -n 2 ./main2d.gnu.TEST.MPI.ex inputs_bittree amr.plot_int=1000

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-15 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
cd ${{ github.workspace }}/bittree
python setup.py library --dim 3 --prefix ${{ github.workspace }}/libbittree
cd build
make -j2
make -j4
make install
- name: Build and Run Test
run: |
Expand All @@ -99,12 +99,12 @@ jobs:

export AMREX_BITTREE_HOME=${{ github.workspace }}/libbittree
cd ${{ github.workspace }}/Tests/Amr/Advection_AmrCore/Exec
make -j2 USE_MPI=TRUE USE_BITTREE=TRUE DIM=3 TEST=TRUE BL_NO_FORT=TRUE\
make -j4 USE_MPI=TRUE USE_BITTREE=TRUE DIM=3 TEST=TRUE BL_NO_FORT=TRUE\
CCACHE=ccache
mpiexec -n 2 ./main3d.gnu.TEST.MPI.ex inputs_bittree max_step=10

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-15 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ jobs:
-DCMAKE_CXX_COMPILER=$(which clang++-7) \
-DCMAKE_Fortran_COMPILER=$(which gfortran) \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
make -j 2
make -j 4
make install
make test_install

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -114,10 +114,10 @@ jobs:
-DCMAKE_CXX_COMPILER=$(which clang++-14) \
-DCMAKE_Fortran_COMPILER=$(which gfortran) \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
make -j 2
make -j 4

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-14 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -154,12 +154,12 @@ jobs:
ccache -z

./configure --dim 2 --with-fortran no --comp llvm --with-mpi no
make -j2 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS="-fno-operator-names" \
make -j4 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS="-fno-operator-names" \
CCACHE=ccache
make install

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-14 \
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 @@ -77,7 +77,7 @@ jobs:
export CCACHE_MAXSIZE=30M
ccache -z

cmake --build build -j 2
cmake --build build -j 4

ccache -s
du -hs ~/.cache/ccache
Expand All @@ -86,7 +86,7 @@ jobs:
touch Src/Base/AMReX.cpp
export CCACHE_DISABLE=1
cd build
make -j 2
make -j 4

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
-DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache

cmake --build build -j 2
cmake --build build -j 4

ccache -s
du -hs ~/.cache/ccache
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
-DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache

cmake --build build -j 2
cmake --build build -j 4

ccache -s
du -hs ~/.cache/ccache
Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
-DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache

cmake --build build -j 2
cmake --build build -j 4

ccache -s
du -hs ~/.cache/ccache
Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
# /home/runner/work/amrex/amrex/Src/Base/AMReX_GpuLaunchGlobal.H:16:41: error: unused parameter ‘f0’ [-Werror=unused-parameter]
# 16 | AMREX_GPU_GLOBAL void launch_global (L f0) { f0(); }
#
make -j2 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS="-fno-operator-names -Wno-unused-parameter" CCACHE=ccache CUDA_ARCH="7.0 7.2"
make -j4 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS="-fno-operator-names -Wno-unused-parameter" CCACHE=ccache CUDA_ARCH="7.0 7.2"
make install

ccache -s
Expand Down
54 changes: 27 additions & 27 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ jobs:
-DCMAKE_CXX_COMPILER=$(which g++-8) \
-DCMAKE_Fortran_COMPILER=$(which gfortran-8) \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
make -j 2
make -j 4
make install
make test_install

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -104,10 +104,10 @@ jobs:
-DAMReX_FORTRAN=ON \
-DAMReX_SPACEDIM=3 \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build build -j 2
cmake --build build -j 4

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -152,10 +152,10 @@ jobs:
-DAMReX_FORTRAN=ON \
-DAMReX_SPACEDIM=2 \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build build -j 2
cmake --build build -j 4

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -201,10 +201,10 @@ jobs:
-DAMReX_FORTRAN=ON \
-DAMReX_SPACEDIM=1 \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build build -j 2
cmake --build build -j 4

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -259,11 +259,11 @@ jobs:
-DCMAKE_CXX_COMPILER=$(which g++-10) \
-DCMAKE_Fortran_COMPILER=$(which gfortran-10) \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
make -j 2
make -j 4

# Let's not use clang-tidy for this test because it wants to use C++20.
# ${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
# make -j2 -k -f clang-tidy-ccache-misses.mak \
# make -j4 -k -f clang-tidy-ccache-misses.mak \
# CLANG_TIDY=clang-tidy-12 \
# CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -317,10 +317,10 @@ jobs:
-DCMAKE_CXX_COMPILER=$(which g++-8) \
-DCMAKE_Fortran_COMPILER=$(which gfortran-8) \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
make -j 2
make -j 4

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -381,10 +381,10 @@ jobs:
-DCMAKE_CXX_COMPILER=$(which g++-12) \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
make -j 2
make -j 4

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-14 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -421,12 +421,12 @@ jobs:
ccache -z

./configure --dim 1
make -j2 XTRA_CXXFLAGS=-fno-operator-names \
make -j4 XTRA_CXXFLAGS=-fno-operator-names \
CCACHE=ccache
make install

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -461,12 +461,12 @@ jobs:
ccache -z

./configure --dim 3 --enable-eb yes --enable-xsdk-defaults yes
make -j2 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names \
make -j4 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names \
CCACHE=ccache
make install

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-15 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -501,12 +501,12 @@ jobs:
ccache -z

./configure --dim 3 --enable-eb no --enable-xsdk-defaults no --single-precision yes --single-precision-particles yes --enable-tiny-profile yes
make -j2 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names \
make -j4 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names \
CCACHE=ccache
make install

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -541,12 +541,12 @@ jobs:
ccache -z

./configure --dim 3 --enable-eb yes --enable-xsdk-defaults yes --with-omp yes --debug yes
make -j2 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names \
make -j4 WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names \
CCACHE=ccache
make install

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -581,11 +581,11 @@ jobs:
ccache -z

cd Tools/Plotfile
make -j2 USE_MPI=FALSE USE_OMP=FALSE WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names \
make -j4 USE_MPI=FALSE USE_OMP=FALSE WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names \
CCACHE=ccache

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -627,10 +627,10 @@ jobs:
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DAMReX_ENABLE_TESTS=ON \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
make -j 2
make -j 4

${{github.workspace}}/Tools/C_scripts/mmclt.py --input ${{github.workspace}}/ccache.log.txt
make -j2 -k -f clang-tidy-ccache-misses.mak \
make -j4 -k -f clang-tidy-ccache-misses.mak \
CLANG_TIDY=clang-tidy-12 \
CLANG_TIDY_ARGS="--config-file=${{github.workspace}}/.clang-tidy --warnings-as-errors=*"

Expand Down Expand Up @@ -659,7 +659,7 @@ jobs:
run: |
cd Tests/HDF5Benchmark
export OLCF_HDF5_ROOT=/usr/lib/x86_64-linux-gnu/hdf5/openmpi
make -j 2
make -j 4
mpirun -np 2 ./main3d.gnu.TPROF.MPI.ex ./inputs
h5dump -d "level_0/data:offsets=0" -s "1" -c "1" ./plt00000.h5
h5dump -d "level_0/data:datatype=1" -s "1" -c "1" ./plt00000/particle0/particle0.h5
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/hip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
-DCMAKE_Fortran_COMPILER=$(which flang) \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build build -j 2
cmake --build build -j 4

ccache -s
du -hs ~/.cache/ccache
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
-DCMAKE_Fortran_COMPILER=$(which gfortran) \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
cmake --build build_full_legacywrapper -j 2
cmake --build build_full_legacywrapper -j 4

ccache -s
du -hs ~/.cache/ccache
Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
ccache -z

./configure --dim 2 --with-hip yes --enable-eb yes --enable-xsdk-defaults yes --with-mpi no --with-omp no --single-precision yes --single-precision-particles yes
make -j2 WARN_ALL=TRUE XTRA_CXXFLAGS="-fno-operator-names" AMD_ARCH=gfx90a CCACHE=ccache
make -j4 WARN_ALL=TRUE XTRA_CXXFLAGS="-fno-operator-names" AMD_ARCH=gfx90a CCACHE=ccache
make install

ccache -s
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
ccache -z

cd Tests/LinearSolvers/NodeEB
make -j2 USE_HIP=TRUE USE_MPI=FALSE BL_NO_FORT=TRUE WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names AMD_ARCH=gfx90a CCACHE=ccache
make -j4 USE_HIP=TRUE USE_MPI=FALSE BL_NO_FORT=TRUE WARN_ALL=TRUE WARN_ERROR=TRUE XTRA_CXXFLAGS=-fno-operator-names AMD_ARCH=gfx90a CCACHE=ccache

ccache -s
du -hs ~/.cache/ccache
Expand Down
Loading