-
Notifications
You must be signed in to change notification settings - Fork 66
168 lines (166 loc) · 5.55 KB
/
build_ascent_gcc.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: build_ascent_gcc
on:
pull_request:
branches: [ develop ]
jobs:
build_basic:
name: Ubuntu Build Ascent GCC
runs-on: ubuntu-20.04
env:
CC: gcc
CXX: g++
FC: gfortran
steps:
- name: Install System Deps
run: |
sudo apt-get update
sudo apt-get install binutils \
gcc \
g++ \
gfortran \
python3 \
perl \
git \
git-lfs \
curl \
wget \
tar \
unzip \
build-essential \
libncurses-dev \
libssl-dev \
libblas-dev \
liblapack-dev \
zlib1g-dev \
libgdbm-dev \
libreadline-dev \
libsqlite3-dev \
libbz2-dev \
openmpi-bin \
openmpi-common \
libopenmpi-dev \
cmake
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Env Info
run: |
echo "**** Env Info"
cmake --version
gcc --version
which mpicc
- name: Build TPLs
run: |
env enable_mpi=ON \
enable_fortran=ON \
enable_tests=OFF \
enable_verbose=OFF \
build_caliper=true \
build_ascent=false \
build_jobs=2 \
./scripts/build_ascent/build_ascent.sh
- name: Configure Ascent
run: |
echo "**** Configuring Ascent"
cmake -S src -B build -C ascent-config.cmake -DCMAKE_INSTALL_PREFIX=install
- name: Build Ascent
run: |
echo "**** Building Ascent"
cmake --build build -j2
- name: Install Ascent
run: |
echo "**** Installing Ascent"
cmake --install build
- name: Check Install
run: |
echo "**** Checking Ascent using-with-cmake-mpi example"
export CC=/usr/bin/mpicc
export CXX=/usr/bin/mpicxx
cd install/examples/ascent/using-with-cmake-mpi
cmake -S . -B build
cmake --build build --verbose -j2
export VTKM_INSTALL_DIR=`ls -d /home/runner/work/ascent/ascent/install/vtk-m-*`
export LD_LIBRARY_PATH=${VTKM_INSTALL_DIR}/lib/:${LD_LIBRARY_PATH}
mpiexec -n 2 ./build/ascent_mpi_render_example
build_basic_pyvenv:
name: Ubuntu Build Ascent GCC with Python VENV
runs-on: ubuntu-20.04
env:
CC: gcc
CXX: g++
FC: gfortran
steps:
- name: Install System Deps
run: |
sudo apt-get update
sudo apt-get install binutils \
gcc \
g++ \
gfortran \
python3 \
perl \
git \
git-lfs \
curl \
wget \
tar \
unzip \
build-essential \
libncurses-dev \
libssl-dev \
libblas-dev \
liblapack-dev \
zlib1g-dev \
libgdbm-dev \
libreadline-dev \
libsqlite3-dev \
libbz2-dev \
openmpi-bin \
openmpi-common \
libopenmpi-dev \
cmake
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Env Info
run: |
echo "**** Env Info"
cmake --version
gcc --version
which mpicc
- name: Build TPLs
run: |
env enable_mpi=ON \
enable_fortran=ON \
enable_tests=OFF \
enable_verbose=OFF \
build_ascent=false \
enable_python=ON \
build_pyvenv=true \
build_jobs=2 \
./scripts/build_ascent/build_ascent.sh
- name: Configure Ascent
run: |
echo "**** Configuring Ascent"
cmake -S src -B build -C ascent-config.cmake -DCMAKE_INSTALL_PREFIX=install
- name: Build Ascent
run: |
echo "**** Building Ascent"
cmake --build build -j2
- name: Install Ascent
run: |
echo "**** Installing Ascent"
cmake --install build
- name: Check Install
run: |
echo "**** Checking Ascent using-with-cmake-mpi example"
export CC=/usr/bin/mpicc
export CXX=/usr/bin/mpicxx
cd install/examples/ascent/using-with-cmake-mpi
cmake -S . -B build
cmake --build build --verbose -j2
export VTKM_INSTALL_DIR=`ls -d /home/runner/work/ascent/ascent/install/vtk-m-*`
export LD_LIBRARY_PATH=${VTKM_INSTALL_DIR}/lib/:${LD_LIBRARY_PATH}
mpiexec -n 2 ./build/ascent_mpi_render_example