-
Notifications
You must be signed in to change notification settings - Fork 66
88 lines (86 loc) · 3.18 KB
/
build_ascent_icc.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
name: build_ascent_icx
on:
pull_request:
branches: [ develop ]
jobs:
build_basic:
name: Ubuntu Build Ascent OpenAPI
runs-on: ubuntu-20.04
env:
CC: icx
CXX: icpx
FC: ifx
steps:
- name: Install System Deps
run: |
sudo apt-get update
sudo apt-get install binutils \
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 \
cmake
- name: Install intel compilers
run: |
curl https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | \
sudo tee /etc/apt/sources.list.d/oneAPI.list > /dev/null
sudo apt-get update
# NOTE: Need to pin dates for openapi compilers.
# Why? b/c we hit a case were 2023 cpp and 2024 fortran compilers ended up getting installed
# And then only one or the other were avaible via oneapi/setvars.sh
sudo apt install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-2023.1.0 \
intel-oneapi-compiler-fortran-2023.1.0
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build TPLs
run: |
source /opt/intel/oneapi/setvars.sh
# print env vars to see what is going on
env enable_mpi=OFF \
enable_fortran=ON \
enable_tests=OFF \
build_ascent=false \
enable_verbose=OFF \
build_jobs=2 \
./scripts/build_ascent/build_ascent.sh
- name: Configure Ascent
run: |
cmake --version
echo "**** Configuring Ascent"
source /opt/intel/oneapi/setvars.sh
cmake -S src -B build -C ascent-config.cmake -DCMAKE_INSTALL_PREFIX=install
- name: Build Ascent
run: |
echo "**** Building Ascent"
source /opt/intel/oneapi/setvars.sh
cmake --build build -j2
- name: Install Ascent
run: |
echo "**** Installing Ascent"
cmake --install build
- name: Check Install
run: |
echo "**** Checking Ascent using-with-cmake example"
source /opt/intel/oneapi/setvars.sh
cd install/examples/ascent/using-with-cmake
cmake -S . -B build
cmake --build build -j2
./build/ascent_render_example