Jorgen's makefiles with separate builds for CUDA, HIP and C++ #1599
Workflow file for this run
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: C/C++ CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
debug_builds: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
folder: [ epochX/cudacpp/ee_mumu.sa/SubProcesses/P1_Sigma_sm_epem_mupmum , epoch1/cuda/ee_mumu/SubProcesses/P1_Sigma_sm_epem_mupmum , epoch2/cuda/ee_mumu/SubProcesses/P1_Sigma_sm_epem_mupmum ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make debug | |
run: make -C ${{ matrix.folder }} debug | |
CPU: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
folder: [ epochX/cudacpp/ee_mumu.mad/SubProcesses/P1_epem_mupmum , epochX/cudacpp/gg_ttgg.mad/SubProcesses/P1_gg_ttxgg ] | |
precision: [ d , f , m ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make info | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} -f cudacpp.mk info | |
- name: make | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} | |
- name: make check | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} -f cudacpp.mk check | |
CPU_MAC: | |
runs-on: macos-latest | |
env: | |
FC: gfortran-11 | |
strategy: | |
matrix: | |
folder: [ epochX/cudacpp/ee_mumu.mad/SubProcesses/P1_epem_mupmum, epochX/cudacpp/gg_ttgg.mad/SubProcesses/P1_gg_ttxgg ] | |
precision: [ d , f , m ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: make info | |
run: make AVX=none OMPFLAGS= FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} -f cudacpp.mk info | |
- name: make | |
run: make AVX=none OMPFLAGS= FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} | |
- name: make check | |
run: make AVX=none OMPFLAGS= FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} -f cudacpp.mk check | |
GPU: | |
runs-on: self-hosted | |
env: | |
CUDA_HOME: /usr/local/cuda/ | |
FC: gfortran | |
BACKEND: cuda | |
strategy: | |
matrix: | |
folder: [ epochX/cudacpp/ee_mumu.mad/SubProcesses/P1_epem_mupmum , epochX/cudacpp/gg_ttgg.mad/SubProcesses/P1_gg_ttxgg ] | |
precision: [ d , f , m ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: path | |
run: echo "PATH=$PATH" | |
- name: make info | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} -f cudacpp.mk info | |
- name: make | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} | |
- name: make check | |
run: make FPTYPE=${{ matrix.precision }} -C ${{ matrix.folder }} -f cudacpp.mk check |