-
Notifications
You must be signed in to change notification settings - Fork 196
135 lines (129 loc) · 3.9 KB
/
insitu.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: 🐧 In Situ Vis
on:
push:
branches:
- "development"
pull_request:
paths-ignore:
- "Docs/**"
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-insituvis
cancel-in-progress: true
jobs:
sensei:
name: SENSEI
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
env:
CXX: clang++
CC: clang
CXXFLAGS: "-Werror -Wshadow -Woverloaded-virtual -Wunreachable-code -Wno-error=pass-failed"
CMAKE_GENERATOR: Ninja
CMAKE_PREFIX_PATH: /root/install/sensei/v4.0.0/lib64/cmake
OMP_NUM_THREADS: 1
container:
image: senseiinsitu/ci:fedora35-amrex-20220613
steps:
- uses: actions/checkout@v4
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
- name: Configure
run: |
cmake -S . -B build \
-DWarpX_SENSEI=ON \
-DWarpX_COMPUTE=NOACC
- name: Build
run: |
cmake --build build -j 4
ascent:
name: Ascent
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
env:
CXX: g++
CC: gcc
CMAKE_PREFIX_PATH: /ascent/install/lib/cmake/
OMP_NUM_THREADS: 1
container:
image: alpinedav/ascent:0.9.2
steps:
- uses: actions/checkout@v4
- name: Configure
run: |
. /ascent_docker_setup_env.sh
cmake -S . -B build \
-DWarpX_ASCENT=ON \
-DWarpX_COMPUTE=NOACC
- name: Build
run: |
. /ascent_docker_setup_env.sh
cmake --build build -j 4
- name: Test
run: |
cp Examples/Physics_applications/laser_acceleration/inputs_base_3d .
cp Examples/Physics_applications/laser_acceleration/3d_ascent_actions.yaml ascent_actions.yaml
mpiexec -n 2 ./build/bin/warpx.3d \
inputs_base_3d \
max_step = 40 \
diag1.intervals = 30:40:10 \
diag1.format = ascent
- uses: actions/upload-artifact@v4
with:
name: ascent-test-artifacts
path: |
*.png
conduit_*
if-no-files-found: error
catalyst:
name: Catalyst
runs-on: ubuntu-22.04
if: github.event.pull_request.draft == false
env:
CXX: g++
CC: gcc
CMAKE_PREFIX_PATH: "/opt/conduit:/opt/catalyst"
CATALYST_DEBUG: 1
CATALYST_IMPLEMENTATION_PATHS: /opt/paraview/lib/catalyst
OMP_NUM_THREADS: 1
# Container build scripts:
# https://gitlab.kitware.com/christos.tsolakis/catalyst-amrex-docker-images
container:
image: kitware/paraview:ci-catalyst-amrex-warpx-20240828
steps:
- uses: actions/checkout@v4
- name: Configure
run: |
cmake -S . -B build \
-DWarpX_DIMS="2;3" \
-DWarpX_CATALYST=ON
- name: Build
run: |
cmake --build build -j 10
- name: 2D Test
run: |
cp Examples/Tests/field_ionization/inputs_test_2d_ionization_lab .
cp Examples/Tests/field_ionization/catalyst_pipeline.py .
mpiexec -n 2 ./build/bin/warpx.2d \
inputs_test_2d_ionization_lab \
catalyst.script_paths = catalyst_pipeline.py\
catalyst.implementation = paraview\
diag1.intervals = 16\
diag1.species = "electrons ions"\
diag1.format = catalyst
- name: 3D Test
run: |
cp Examples/Tests/electrostatic_sphere/inputs_base_3d .
cp Examples/Tests/electrostatic_sphere/catalyst_pipeline.py .
mpiexec -n 2 ./build/bin/warpx.3d \
inputs_base_3d \
catalyst.script_paths = catalyst_pipeline.py \
catalyst.implementation = paraview \
diagnostics.diags_names = diag1 \
diag1.format = catalyst\
diag1.intervals = 3
- uses: actions/upload-artifact@v4
with:
name: catalyst-test-artifacts
path: |
datasets/*.png
if-no-files-found: error