Skip to content

Commit

Permalink
build on oneAPI with cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz committed Jun 24, 2024
1 parent 8c6098a commit b021bab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down

0 comments on commit b021bab

Please sign in to comment.