From b021babb073130738e8f9a5b6c5ad4b6bf36e897 Mon Sep 17 00:00:00 2001 From: Federico Perini Date: Mon, 24 Jun 2024 19:33:04 +0200 Subject: [PATCH] build on oneAPI with cmake --- .github/workflows/meta.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index 9a52458e57..30ae3d307c 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -121,16 +121,17 @@ jobs: if: contains(matrix.os,'ubuntu') && contains(matrix.mpi,'intel') run: | # Install MPI - sudo apt-get install -y -q intel-oneapi-mpi-devel ninja-build + sudo apt-get install -y -q intel-oneapi-mpi-devel ninja-build cmake source /opt/intel/oneapi/setvars.sh --force printenv >> $GITHUB_ENV - # To run HDF5 with oneAPI, we need to build it from source + # To run HDF5 with oneAPI, we need to build it from source. Use CMake to generate pkg-config info curl -O -L https://github.com/HDFGroup/hdf5/archive/refs/tags/snapshot-1.14.tar.gz tar zxf snapshot-1.14.tar.gz cd hdf5-snapshot-1.14 - sh ./autogen.sh - sh ./configure --prefix=/tmp CC="$(which icx)" FC="$(which ifx)" --enable-build-mode=production --enable-fortran + cmake -B build -DHDF5_BUILD_FORTRAN=ON -DCMAKE_INSTALL_PREFIX=/usr/lib + cd build make -j + make install - name: (Windows) Put MSYS2_MinGW64 on PATH if: contains(matrix.os,'windows') && (!contains(matrix.mpi,'intel'))