Skip to content

Commit 245d659

Browse files
Merge branch 'singhbalwinder/gcam/add-compy-fpic-flags' #7806)
Adds fpic and mcmodel medium flags to Compy's Intel C and Frotran flags for GCAM component The model fails to compile on Compy. Adding these flags allows the model to compile. This change is NBFB for Compy only. [NBFB] --Compy only, BFB otherwise * singhbalwinder/gcam/add-compy-fpic-flags: Adds fpic and mcmodel medium to Compy's Intel C and Frotran flags
2 parents 27db2ad + 8fb486c commit 245d659

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cime_config/machines/cmake_macros/intel_compy.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ if (COMP_NAME STREQUAL gptl)
22
string(APPEND CMAKE_C_FLAGS " -DHAVE_SLASHPROC")
33
endif()
44
string(APPEND CPPDEFS " -DLINUX")
5+
string(APPEND CMAKE_C_FLAGS " -fPIC -mcmodel=medium ")
56
string(APPEND CMAKE_Fortran_FLAGS_DEBUG " -check all -ftrapuv -init=snan")
7+
string(APPEND CMAKE_Fortran_FLAGS " -fPIC -mcmodel=medium ")
68
set(PIO_FILESYSTEM_HINTS "lustre")
79
string(APPEND CMAKE_EXE_LINKER_FLAGS " -lpmi ")
810
if (MPILIB STREQUAL impi)

0 commit comments

Comments
 (0)