Skip to content

Commit

Permalink
limit Intel Classic CI to Ubuntu 22.04 (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
perazz authored Jan 29, 2025
2 parents 6ec8cd0 + 07dd414 commit 74f5f90
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,16 @@ jobs:
- {compiler: gcc, version: 11}
- {compiler: gcc, version: 12}
- {compiler: gcc, version: 13}
- {compiler: intel, version: '2024.1'}
- {compiler: intel-classic, version: '2021.9'}
build: [cmake]
- {compiler: intel, version: '2024.1'}
build: [cmake]
include:
- os: ubuntu-22.04
build: cmake
toolchain: {compiler: intel-classic, version: '2021.10'}
- os: ubuntu-latest
build: cmake-inline
toolchain:
- {compiler: gcc, version: 10}
toolchain: {compiler: gcc, version: 10}
exclude:
- os: macos-13
toolchain: {compiler: intel-classic, version: '2021.9'}
- os: macos-13
toolchain: {compiler: intel, version: '2024.1'}
- os: macos-13
Expand All @@ -56,7 +55,7 @@ jobs:
run: pip install --upgrade fypp ninja

- name: Setup Fortran compiler
uses: fortran-lang/[email protected].1
uses: fortran-lang/[email protected].2
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
Expand Down
11 changes: 10 additions & 1 deletion test/hash_functions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,22 @@ target_sources(
waterhash.c
generate_hash_arrays.cpp
)

if(CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")

# Set the C++ standard to prevent icpc breakage
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

set_target_properties(test_hash_functions PROPERTIES LINKER_LANGUAGE Fortran)
endif()

if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU AND CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 10.0)
target_compile_options(
test_hash_functions
PRIVATE
$<$<COMPILE_LANGUAGE:Fortran>:-fno-range-check>
)
)
endif()

0 comments on commit 74f5f90

Please sign in to comment.