Skip to content

cinema fixes

cinema fixes #667

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=OFF \
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