change to single component bc_ptr #676
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: REMORA CUDA CI | |
on: | |
pull_request: | |
branches: [development] | |
concurrency: | |
group: ${{ github.ref }}-${{ github.head_ref }}-cuda-ci | |
cancel-in-progress: true | |
jobs: | |
cuda-build: | |
runs-on: ubuntu-20.04 | |
name: CUDA v${{matrix.cuda_ver}} | |
strategy: | |
matrix: | |
cuda_pkg: [11-0] | |
include: | |
- cuda_ver: "11.0" | |
cuda_pkg: 11-0 | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{github.token}} | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Prepare CUDA environment | |
run: Submodules/AMReX/.github/workflows/dependencies/dependencies_nvcc.sh ${{matrix.cuda_ver}} | |
- name: Install CCache | |
run: Submodules/AMReX/.github/workflows/dependencies/dependencies_ccache.sh | |
- name: Set Up Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/ccache | |
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }} | |
restore-keys: | | |
ccache-${{ github.workflow }}-${{ github.job }}-git- | |
- name: Configure and build | |
run: | | |
export CCACHE_COMPRESS=1 | |
export CCACHE_COMPRESSLEVEL=10 | |
export CCACHE_MAXSIZE=600M | |
ccache -z | |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH} | |
export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:${LD_LIBRARY_PATH} | |
which nvcc || echo "nvcc not in PATH!" | |
cmake -Bbuild-${{matrix.cuda_pkg}} \ | |
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ | |
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
-DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \ | |
-DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \ | |
-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON \ | |
-DREMORA_DIM:STRING=3 \ | |
-DREMORA_ENABLE_MPI:BOOL=OFF \ | |
-DREMORA_ENABLE_CUDA:BOOL=ON . | |
cmake --build build-${{matrix.cuda_pkg}} -- -j $(nproc) | |
ccache -s | |
du -hs ~/.cache/ccache |