From cea9df36438466adf528f7a397c72c88efebd3ba Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Wed, 13 Nov 2024 14:56:30 -0800 Subject: [PATCH] Update Cray compiler options and calling convention --- cmake/fc.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmake/fc.cmake b/cmake/fc.cmake index db818e4a03..4ce1c99d4b 100644 --- a/cmake/fc.cmake +++ b/cmake/fc.cmake @@ -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 ()