Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4975 from martin-frbg/fixup4974
Browse files Browse the repository at this point in the history
Update Cray compiler options and calling convention in CMake
  • Loading branch information
martin-frbg authored Nov 14, 2024
2 parents 3e7e312 + cea9df3 commit 2e2f952
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake/fc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -257,13 +257,15 @@ if (${F_COMPILER} STREQUAL "COMPAQ")
endif ()

if (${F_COMPILER} STREQUAL "CRAY")
set(CCOMMON_OPT "${CCOMMON_OPT} -DF_INTERFACE_INTEL")
set(CCOMMON_OPT "${CCOMMON_OPT} -DF_INTERFACE_CRAYFC")
set(FCOMMON_OPT "${FCOMMON_OPT} -hnopattern")
if (INTERFACE64)
set (FCOMMON_OPT "${FCOMMON_OPT} -s integer64")
endif ()
if (NOT USE_OPENMP)
set(FCOMMON_OPT "${FCOMMON_OPT} -O noomp")
set(FCOMMON_OPT "${FCOMMON_OPT} -fno-openmp")
else ()
set(FCOMMON_OPT "${FCOMMON_OPT} -fopenmp")
endif ()
endif ()

Expand Down

0 comments on commit 2e2f952

Please sign in to comment.