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 642e70f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ 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},
img: [ {os: ubuntu-24.04, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin},
{os: macos-latest, cmd: brew install open-mpi}
]
include:
- scotch: true
img: {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin}
img: {os: ubuntu-24.04, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin}
- metis: true
img: {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin}
img: {os: ubuntu-24.04, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin}
- lapack_vendor: "OpenBLAS"
img: {os: ubuntu-latest, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin libopenblas-dev}
img: {os: ubuntu-24.04, cmd: sudo apt update && sudo apt install --no-install-recommends libopenmpi-dev openmpi-bin libopenblas-dev}

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

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

steps:

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 642e70f

Please sign in to comment.