Skip to content

Commit

Permalink
Use -liomp5 on Intel compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Feb 8, 2025
1 parent 3ecde5b commit bccb8dc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ jobs:
metis: [32, 64]
include:
- compiler: gcc
- os: ubuntu-latest
compiler: intel
compiler_version: '2023.2'
metis: 32
allow_failure: true
- os: ubuntu-latest
compiler: intel
compiler_version: '2023.2'
metis: 64
allow_failure: true
- os: macos-latest
compiler: gcc
compiler_version: '13'
Expand All @@ -29,11 +39,11 @@ jobs:
arch: 'arm64'
metis: 64
allow_failure: true
# - os: ubuntu-latest
# compiler: nvidia-hpc
# compiler_version: '23.11'
# metis: 32
# allow_failure: true
- os: ubuntu-latest
compiler: nvidia-hpc
compiler_version: '25.1'
metis: 32
allow_failure: true
runs-on: ${{ matrix.os }}
steps:
- name: Check out SPRAL
Expand Down
6 changes: 6 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ elif cxx.get_id() == 'intel-cl' or cxx.get_id() == 'intel-llvm-cl'
endif

lomp = '-lgomp'
if cxx.get_id() == 'intel' or cxx.get_id() == 'intel-llvm'
lomp = '-liomp5'
endif
if cxx.get_id() == 'nvidia_hpc'
lomp = '-lomp'
endif
if host_machine.system() == 'darwin' or host_machine.system() == 'freebsd'
if cxx.get_id() == 'clang'
lomp = '-lomp'
Expand Down

0 comments on commit bccb8dc

Please sign in to comment.