Skip to content

FindLAPACK:oneAPI: use vendor MKLConfig.cmake #322

FindLAPACK:oneAPI: use vendor MKLConfig.cmake

FindLAPACK:oneAPI: use vendor MKLConfig.cmake #322

Workflow file for this run

name: ci
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
CMAKE_GENERATOR: Ninja
CTEST_NO_TESTS_ACTION: error
on:
push:
paths:
- "**.c"
- "**.f"
- "**.F"
- "**.f90"
- "**.F90"
- "**.cmake"
- "**.txt"
- ".github/workflows/ci.yml"
- "!scripts/*"
jobs:
core:
timeout-minutes: 15
strategy:
matrix:
scotch: [false]
metis: [false]
int64: [true, false]
lapack_vendor: [""]
img: [ {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends ninja-build libopenmpi-dev openmpi-bin libscalapack-mpi-dev},
{os: macos-latest, cmd: brew install ninja scalapack open-mpi && brew reinstall gcc}
]
include:
- scotch: true
int64: false
img: {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends ninja-build libopenmpi-dev openmpi-bin libscalapack-mpi-dev}
- metis: true
int64: false
img: {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends ninja-build libopenmpi-dev openmpi-bin libscalapack-mpi-dev}
- lapack_vendor: "OpenBLAS"
int64: false
img: {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends ninja-build libopenmpi-dev openmpi-bin libopenblas-dev libscalapack-mpi-dev}
runs-on: ${{ matrix.img.os }}
steps:
- name: Install prereqs
run: ${{ matrix.img.cmd }}
- uses: actions/checkout@v3
- name: Build METIS
if: ${{ matrix.metis }}
run: cmake -Dprefix:PATH=${{ runner.temp }} -P scripts/build_metis.cmake
- name: Build scotch
if: ${{ matrix.scotch }}
run: cmake -Dprefix:PATH=${{ runner.temp }} -P scripts/build_scotch.cmake
- name: configure int64=${{ matrix.int64 }}
run: >-
cmake
--preset default
-DCMAKE_PREFIX_PATH=${{ runner.temp }}
-DCMAKE_INSTALL_PREFIX=${{ runner.temp }}
-Dscotch:BOOL=${{ matrix.scotch }}
-Dmetis:BOOL=${{ matrix.metis }}
-DLAPACK_VENDOR=${{ matrix.lapack_vendor }}
-Dintsize64:BOOL=${{ matrix.int64 }}
- name: build, test release
run: cmake --workflow --preset default
- name: install package
run: cmake --install build
- name: configure example
run: cmake -S example -B example/build -DCMAKE_PREFIX_PATH:PATH=${{ runner.temp }}
- name: build example
run: cmake --build example/build
- name: test example
run: ctest --test-dir example/build -V
- name: Scotch example
if: ${{ matrix.scotch }}
run: |
cmake -S example/scotch -Bexample/scotch/build -DCMAKE_PREFIX_PATH:PATH=${{ runner.temp }}
cmake --build example/scotch/build
ctest --test-dir example/scotch/build
- name: print config log
if: ${{ failure() && matrix.scotch }}
run: |
cat example/scotch/build/CMakeFiles/CMakeConfigureLog.yaml
- name: METIS example
if: ${{ matrix.metis }}
run: |
cmake -S example/metis -Bexample/metis/build -DCMAKE_PREFIX_PATH:PATH=${{ runner.temp }}
cmake --build example/metis/build
ctest --test-dir example/metis/build
- name: print config log
if: ${{ failure() && matrix.metis }}
run: |
cat example/metis/build/CMakeFiles/CMakeConfigureLog.yaml