makpahr@gmail_com
New Member
We are trying to use CLM4.5CN in our study within CESM1.2.2. Here are some of the information of my case: create_newcase -case CLM4.5cn_test -res f19_f19 -mach userdefined -compset ICRUCLM45 CLM_CONFIG_OPTS = -phys clm4_5 -bgc cn CLM_BLDNML_OPTS = -megan MPI_PATH = /opt/share/mpich2-1.2rc3 NETCDF_PATH = /opt/share/netcdf-4.3.2.intel CLM4CN cases can be successfully ran (compset = ICRUCN). But when we are trying to build a case with CLM4.5, we came across an error saying: undefined reference to 'dgbsv'We found some websites useful to solve this problem:https://bb.cgd.ucar.edu/banddiagonalmodf90210-undefined-reference-dgbsvhttps://software.intel.com/en-us/articles/intel-mkl-link-line-advisor We tried to link LAPACK/BLAS libraries by adding these in Macros file: MKLROOT=/opt/share/intel/composer_xe_2013_sp1.3.174/mkl SLIBS+=-L${MKLROOT}/compiler/lib/intel64/libiomp5 -liomp5 -L${MKLROOT}/lib/intel64/libmkl_blas95_ilp64 -L${MKLROOT}/lib/intel64/libmkl_lapack95_ilp64 -L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_core -lmkl_intel_thread -lpthread -lm -L$(LIB_NETCDF) -lnetcdf -lnetcdff FFLAGS:= -fp-model source -convert big_endian -assume byterecl -ftz -traceback -assume realloc_lhs -I${MKLROOT}/include/intel64/ilp64 -I${MKLROOT}/include We succeeded in compiling the case, but failed in the running process with no clear error message. In cesm.log file, it says:......Opened existing file /scratch/s1155053991/cesm_inputs/rof/rtm/initdata/rtmi.ICRUCLM45BGC.2000-01-01. R05_simyr2000_c130518.nc 131072forrtl: severe (174): SIGSEGV, segmentation fault occurredImage PC Routine Line Sourcecesm.exe 000000000270B6D9 Unknown Unknown Unknowncesm.exe 0000000002709FAE Unknown Unknown Unknowncesm.exe 00000000026BE192 Unknown Unknown Unknowncesm.exe 0000000002655373 Unknown Unknown Unknowncesm.exe 000000000265EDBB Unknown Unknown Unknownlibpthread.so.0 00002B89F4B07850 Unknown Unknown Unknownlibmkl_avx.so 00002B89FB774D68 Unknown Unknown Unknownlibmkl_core.so 00002B89F2D8E1DA Unknown Unknown Unknownlibmkl_intel_thre 00002B89F412826B Unknown Unknown Unknownlibmkl_core.so 00002B89F28DB1A1 Unknown Unknown Unknowncesm.exe 0000000001BC7152 banddiagonalmod_m 213 BandDiagonalMod.F90cesm.exe 00000000018D3449 soiltemperaturemo 742 SoilTemperatureMod.F90cesm.exe 0000000000EFAE6D biogeophysics2mod 313 Biogeophysics2Mod.F90cesm.exe 000000000079690E clm_driver_mp_clm 582 clm_driver.F90cesm.exe 0000000000708A12 lnd_comp_mct_mp_l 589 lnd_comp_mct.F90cesm.exe 000000000048FBFC ccsm_comp_mod_mp_ 3281 ccsm_comp_mod.F90cesm.exe 00000000004C1A2E MAIN__ 91 ccsm_driver.F90cesm.exe 0000000000413586 Unknown Unknown Unknownlibc.so.6 00002B89F5B4CC36 Unknown Unknown Unknowncesm.exe 0000000000413479 Unknown Unknown Unknownforrtl: severe (174): SIGSEGV, segmentation fault occurredImage PC Routine Line Sourcecesm.exe 000000000270B6D9 Unknown Unknown Unknowncesm.exe 0000000002709FAE Unknown Unknown Unknowncesm.exe 00000000026BE192 Unknown Unknown Unknowncesm.exe 0000000002655373 Unknown Unknown Unknowncesm.exe 000000000265EDBB Unknown Unknown Unknownlibpthread.so.0 00002B3C35E65850 Unknown Unknown Unknownlibmkl_avx.so 00002B3C3C99FD68 Unknown Unknown Unknownlibmkl_core.so 00002B3C340EC1DA Unknown Unknown Unknownlibmkl_intel_thre 00002B3C3548626B Unknown Unknown Unknown libmkl_core.so 00002B3C33C391A1 Unknown Unknown Unknownlibmkl_intel_thre 00002B3C3548626B Unknown Unknown Unknownlibmkl_core.so 00002B3C33C391A1 Unknown Unknown Unknowncesm.exe 0000000001BC7152 banddiagonalmod_m 213 BandDiagonalMod.F90cesm.exe 00000000018D3449 soiltemperaturemo 742 SoilTemperatureMod.F90cesm.exe 0000000000EFAE6D biogeophysics2mod 313 Biogeophysics2Mod.F90cesm.exe 000000000079690E clm_driver_mp_clm 582 clm_driver.F90cesm.exe 0000000000708A12 lnd_comp_mct_mp_l 589 lnd_comp_mct.F90cesm.exe 000000000048FBFC ccsm_comp_mod_mp_ 3281 ccsm_comp_mod.F90cesm.exe 00000000004C1A2E MAIN__ 91 ccsm_driver.F90cesm.exe 0000000000413586 Unknown Unknown Unknownlibc.so.6 00002B3C36EAAC36 Unknown Unknown Unknowncesm.exe 0000000000413479 Unknown Unknown Unknown ==================================================================================== BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES= EXIT CODE: 174= CLEANING UP REMAINING PROCESSES= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES =================================================================================== Seems like we are not linking the required libraries correctly. Anyone can help us out here? Thanks a lot in advance.