-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (43 loc) · 1.25 KB
/
cudaLocal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2022-2023
#
# This file is part of HiPACE++.
#
# Authors: Axel Huebl, Maxence Thevenet
# License: BSD-3-Clause-LBNL
name: 🐧 local CUDA
on:
push:
branches:
- development
pull_request:
branches:
- development
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-cudaLocal
cancel-in-progress: true
jobs:
build_nvcc:
name: local V100 NVCC 11.1 DP
runs-on: self-hosted
if: github.event.pull_request.draft == false
env:
CXXFLAGS: "-Werror"
steps:
- uses: actions/checkout@v4
- name: Build & Install
run: |
source $HOME/profile.hipace
which nvcc || echo "nvcc not in PATH!"
cmake -S . -B build \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DAMReX_CUDA_ARCH=7.0 \
-DHiPACE_COMPUTE=CUDA \
-DHiPACE_PRECISION=DOUBLE \
-DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON \
-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON
cmake --build build -j 8
- name: Run Tests
run: |
source $HOME/profile.hipace
conda activate openpmd
ctest --test-dir build --output-on-failure