diff --git a/cime/cime_config/acme/machines/config_compilers.xml b/cime/cime_config/acme/machines/config_compilers.xml index 237cd880b312..7f3394085416 100644 --- a/cime/cime_config/acme/machines/config_compilers.xml +++ b/cime/cime_config/acme/machines/config_compilers.xml @@ -552,7 +552,7 @@ for mct, etc. -O2 --host=Linux -L$(NETCDF_DIR) -lnetcdff -Wl,--as-needed,-L$(NETCDF_DIR)/lib -lnetcdff -lnetcdf - ${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm -z muldefs + $ENV{MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group $ENV{MKLROOT}/lib/intel64/libmkl_intel_lp64.a $ENV{MKLROOT}/lib/intel64/libmkl_core.a $ENV{MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group $ENV{MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm -z muldefs -DHAVE_PAPI ftn cc @@ -572,7 +572,7 @@ for mct, etc. -qopenmp --host=Linux -L$(NETCDF_DIR) -lnetcdff -Wl,--as-needed,-L$(NETCDF_DIR)/lib -lnetcdff -lnetcdf - ${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm + $ENV{MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group $ENV{MKLROOT}/lib/intel64/libmkl_intel_lp64.a $ENV{MKLROOT}/lib/intel64/libmkl_core.a $ENV{MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group $ENV{MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm -DHAVE_PAPI -DHAVE_SLASHPROC @@ -614,7 +614,7 @@ for mct, etc. -O2 --host=Linux -L$(NETCDF_DIR) -lnetcdff -Wl,--as-needed,-L$(NETCDF_DIR)/lib -lnetcdff -lnetcdf - ${MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group ${MKLROOT}/lib/intel64/libmkl_intel_lp64.a ${MKLROOT}/lib/intel64/libmkl_core.a ${MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group ${MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm + $ENV{MKLROOT}/lib/intel64/libmkl_scalapack_lp64.a -Wl,--start-group $ENV{MKLROOT}/lib/intel64/libmkl_intel_lp64.a $ENV{MKLROOT}/lib/intel64/libmkl_core.a $ENV{MKLROOT}/lib/intel64/libmkl_sequential.a -Wl,--end-group $ENV{MKLROOT}/lib/intel64/libmkl_blacs_intelmpi_lp64.a -lpthread -lm -DHAVE_PAPI ftn cc diff --git a/components/homme/CMakeLists.txt b/components/homme/CMakeLists.txt index 86775171bc0b..bc6a4a0ec07a 100644 --- a/components/homme/CMakeLists.txt +++ b/components/homme/CMakeLists.txt @@ -168,6 +168,11 @@ IF (HDF5_DIR) ENDIF () ADD_SUBDIRECTORY(utils/cime/externals/pio1) +get_cmake_property(_variableNames VARIABLES) +foreach (_variableName ${_variableNames}) + message(STATUS "JGF ${_variableName}=${${_variableName}}") +endforeach() + # CPRNC locations SET (CPRNC_INSTALL_DIR ${CMAKE_BINARY_DIR}/utils/cime/tools/cprnc) SET (CPRNC_BINARY ${CMAKE_BINARY_DIR}/utils/cime/tools/cprnc/cprnc) diff --git a/components/homme/cmake/machineFiles/cori-haswell.cmake b/components/homme/cmake/machineFiles/cori-haswell.cmake index a9aa03490dad..f79e8a4dd702 100644 --- a/components/homme/cmake/machineFiles/cori-haswell.cmake +++ b/components/homme/cmake/machineFiles/cori-haswell.cmake @@ -8,6 +8,7 @@ SET (CMAKE_C_COMPILER cc CACHE FILEPATH "") SET (CMAKE_CXX_COMPILER CC CACHE FILEPATH "") SET (NETCDF_DIR $ENV{NETCDF_DIR} CACHE FILEPATH "") +SET (PNETCDF_DIR $ENV{PARALLEL_NETCDF_DIR} CACHE FILEPATH "") SET (HDF5_DIR $ENV{HDF5_DIR} CACHE FILEPATH "") #ZLIB_DIR=/global/common/cori/software/zlib/1.2.8/hsw/intel diff --git a/components/homme/cmake/machineFiles/cori-knl.cmake b/components/homme/cmake/machineFiles/cori-knl.cmake index 45de24bedd9c..655cfaa8f930 100644 --- a/components/homme/cmake/machineFiles/cori-knl.cmake +++ b/components/homme/cmake/machineFiles/cori-knl.cmake @@ -8,6 +8,7 @@ SET (CMAKE_C_COMPILER cc CACHE FILEPATH "") SET (CMAKE_CXX_COMPILER CC CACHE FILEPATH "") SET (NETCDF_DIR $ENV{NETCDF_DIR} CACHE FILEPATH "") +SET (PNETCDF_DIR $ENV{PARALLEL_NETCDF_DIR} CACHE FILEPATH "") SET (HDF5_DIR $ENV{HDF5_DIR} CACHE FILEPATH "") #ZLIB_DIR=/global/common/cori/software/zlib/1.2.8/hsw/intel diff --git a/components/homme/cmake/machineFiles/edison.cmake b/components/homme/cmake/machineFiles/edison.cmake index d0e18f39958f..055b398a2f83 100644 --- a/components/homme/cmake/machineFiles/edison.cmake +++ b/components/homme/cmake/machineFiles/edison.cmake @@ -8,8 +8,7 @@ SET (CMAKE_C_COMPILER cc CACHE FILEPATH "") SET (CMAKE_CXX_COMPILER CC CACHE FILEPATH "") SET (NETCDF_DIR $ENV{NETCDF_DIR} CACHE FILEPATH "") SET (HDF5_DIR $ENV{HDF5_DIR} CACHE FILEPATH "") -#ndk SET (PNETCDF_DIR $ENV{PARALLEL_NETCDF_DIR} CACHE FILEPATH "") -# this env var is not set with module cray-netcdf-hdf5parallel/4.3.3.1 +SET (PNETCDF_DIR $ENV{PARALLEL_NETCDF_DIR} CACHE FILEPATH "") SET (HDF5_DIR $ENV{HDF5_DIR} CACHE FILEPATH "")