Skip to content

Commit

Permalink
no strict aliasing typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed May 16, 2024
1 parent cbdf7fc commit afa0842
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,35 @@ jobs:
scotch: [false]
metis: [false]
lapack_vendor: [""]
img: [ {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin},
{os: macos-latest, cmd: brew install open-mpi}
]
os: [ubuntu-24.04, macos-latest]
include:
- scotch: true
img: {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin}
os: ubuntu-24.04
- metis: true
img: {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin}
os: ubuntu-24.04
- lapack_vendor: "OpenBLAS"
img: {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin libopenblas-dev}
os: ubuntu-24.04

runs-on: ${{ matrix.img.os }}
runs-on: ${{ matrix.os }}

env:
FC: gfortran-12
FC: gfortran-13

steps:

- name: Install prereqs
run: ${{ matrix.img.cmd }}
- name: Install prereqs (Linux)
if: runner.os == 'Linux'
run: |
sudo apt update
sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin liblapack-dev
- name: Install prereqs (macOS)
if: runner.os == 'macOS'
run: brew install open-mpi

- name: Install OpenBLAS (Linux)
if: ${{ matrix.lapack_vendor == 'OpenBLAS' }}
run: sudo apt install --no-install-recommends libopenblas-dev

- uses: actions/checkout@v4

Expand Down
4 changes: 2 additions & 2 deletions cmake/compilers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ if(CMAKE_C_COMPILER_ID MATCHES "^Intel")
endif()

add_compile_options($<$<COMPILE_LANG_AND_ID:C,IntelLLVM>:$<IF:$<BOOL:${WIN32}>,/Qopenmp,-fiopenmp>>)
elseif(CMAKE_C_COMPILER_ID STREQUAL "Clang|GNU")
add_compile_options($<$<COMPILE_LANGUAGE:C>:-Werror-implicit-function-declaration;-fno-strict-aliasing>)
elseif(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU")
add_compile_options("$<$<COMPILE_LANGUAGE:C>:-Werror-implicit-function-declaration;-fno-strict-aliasing>")
endif()


Expand Down

0 comments on commit afa0842

Please sign in to comment.