Skip to content

Merge branch 'main' into lwji/Z4co #446

Merge branch 'main' into lwji/Z4co

Merge branch 'main' into lwji/Z4co #446

Workflow file for this run

name: CI
# Control when the workflow will run
on:
push:
# `pull_request` is disabled because we already build for all pushes
# pull_request:
# Allow running this workflow manually from the Actions tab
workflow_dispatch:
# concurrency:
# group: carpetx
# cancel-in-progress: false
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job
download-build-test:
strategy:
matrix:
accelerator: [cpu, cuda, rocm]
real-precision: [real64]
mode: [debug, optimize]
exclude:
- {accelerator: rocm, real-precision: real32}
- {accelerator: rocm, mode: debug} # uses too much memory?
- {real-precision: real32, mode: optimize}
env:
ACCELERATOR: ${{matrix.accelerator}}
REAL_PRECISION: ${{matrix.real-precision}}
MODE: ${{matrix.mode}}
# The type of runner that the job will run on
runs-on: ubuntu-latest
container: einsteintoolkit/carpetx:${{matrix.accelerator}}-${{matrix.real-precision}}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Check out the repository under $GITHUB_WORKSPACE, so our job can access it
- uses: actions/checkout@v4
- name: Log the triggering commit
run: echo ${{github.event.client_payload.trigger}}
- name: Download Cactus
run: /bin/bash $GITHUB_WORKSPACE/scripts/download.sh
- name: Build Cactus
run: /bin/bash $GITHUB_WORKSPACE/scripts/build.sh
- name: Test Cactus
# We cannot run on accelerators. Single precision output is not accurate enough. Debug builds run too slowly.
if: ${{matrix.accelerator == 'cpu' && matrix.real-precision == 'real64' && matrix.mode == 'optimize'}}
run: /bin/bash $GITHUB_WORKSPACE/scripts/test.sh