Adding dependabot to create a monthly PR updating the amrex submodule #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI_mesoflow | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
cputest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: System Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends \ | |
build-essential g++ gfortran libopenmpi-dev openmpi-bin | |
- name: Build Regression | |
working-directory: ./tests/Cartesian | |
run: | | |
cd Channel | |
make -j 2 COMP=gnu DEBUG=TRUE | |
cd .. | |
cd ShockTube_N2 | |
make -j 2 COMP=gnu DEBUG=TRUE | |
cd .. | |
cd ShockTube_N2He | |
make -j 2 COMP=gnu DEBUG=TRUE | |
cd .. | |
cd SpeciesEqTests | |
make -j 2 COMP=gnu DEBUG=TRUE | |
cd .. | |
cd TaylorGreen | |
make -j 2 COMP=gnu DEBUG=TRUE | |
- name: Run Regression | |
working-directory: ./tests/Cartesian | |
run: | | |
cd Channel | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_x max_step=20 | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_y max_step=20 | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_z max_step=20 | |
cd .. | |
cd ShockTube_N2 | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_x max_step=20 | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_y max_step=20 | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_z max_step=20 | |
cd .. | |
cd ShockTube_N2He | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_x max_step=20 | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_y max_step=20 | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_z max_step=20 | |
cd .. | |
cd SpeciesEqTests | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_x max_step=20 | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_y max_step=20 | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs_z max_step=20 | |
cd .. | |
cd TaylorGreen | |
mpirun -n 2 ./mesoflow3d.gnu.DEBUG.MPI.ex inputs max_step=20 | |
gputest: | |
name: cudatest | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
cuda_ver: [11.4] | |
include: | |
- cuda_ver: "11.4" | |
cuda_pkg: 11-4 | |
cuda_extra: libcurand-dev-11-4 cuda-cupti-dev-11-4 | |
steps: | |
- name: Clone | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Prepare CUDA environment | |
run: | | |
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub | |
echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list | |
sudo apt-get update | |
sudo apt-get install -y --no-install-recommends ninja-build \ | |
cuda-command-line-tools-${{matrix.cuda_pkg}} cuda-compiler-${{matrix.cuda_pkg}} cuda-minimal-build-${{matrix.cuda_pkg}} cuda-nvml-dev-${{matrix.cuda_pkg}} cuda-nvtx-${{matrix.cuda_pkg}} ${{matrix.cuda_extra}} | |
- name: Configure and build | |
working-directory: ./tests/Cartesian | |
run: | | |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda-${{matrix.cuda_ver}}/bin:${PATH} | |
export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda-${{matrix.cuda_ver}}/lib:${LD_LIBRARY_PATH} | |
cd Channel | |
make -j 2 COMP=gnu USE_CUDA=TRUE USE_MPI=FALSE | |
cd .. | |
cd ShockTube_N2 | |
make -j 2 COMP=gnu USE_CUDA=TRUE USE_MPI=FALSE | |
cd .. | |
cd ShockTube_N2He | |
make -j 2 COMP=gnu USE_CUDA=TRUE USE_MPI=FALSE | |
cd .. | |
cd SpeciesEqTests | |
make -j 2 COMP=gnu USE_CUDA=TRUE USE_MPI=FALSE | |
cd .. | |
cd TaylorGreen | |
make -j 2 COMP=gnu USE_CUDA=TRUE USE_MPI=FALSE |