Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed issue with compiler flags when "generic" is passed as MACHINE_C…
Browse files Browse the repository at this point in the history
…ODE_VALUE using Intel comilers.
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Aug 9, 2023
1 parent 24c9333 commit 92540d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/Modules/SetFortranFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ IF (USE_SIMD)

IF (COMPILER_OPTIONS STREQUAL "Intel")

IF (MACHINE_CODE_VALUE STREQUAL "generic")
SET(MACHINE_CODE_VALUE "SSE2")
ENDIF()

# Enables OpenMP SIMD compilation when OpenMP parallelization is disabled.
IF (NOT USE_OPENMP)
SET_COMPILE_FLAG(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS}"
Expand Down

0 comments on commit 92540d8

Please sign in to comment.