Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help with netcdf support #12779

Closed
VictorEijkhout opened this issue Feb 27, 2024 · 3 comments
Closed

Need help with netcdf support #12779

VictorEijkhout opened this issue Feb 27, 2024 · 3 comments
Labels
type: bug The primary issue is a bug in Trilinos code or tests

Comments

@VictorEijkhout
Copy link

Bug Report

Description

Cmake command:

++ cmdline='cmake   -B /work/00434/eijkhout/trilinos/build-15.0.0-milan-intel24-impi -S /work/00434/eijkhout/trilinos/trilinos-15.0.0   -D CMAKE_INSTALL_PREFIX:PATH=/work/00434/eijkhout/trilinos/ins
tallation-trilinos-15.0.0-milan-intel24-impi   -D CMAKE_BUILD_TYPE:STRING=RELEASE   -D BUILD_SHARED_LIBS:BOOL=ON   -D CMAKE_COLOR_DIAGNOSTICS=OFF   -D CMAKE_VERBOSE_MAKEFILE=ON   -D Trilinos_VERBOSE
_CONFIGURE=ON     -D Trilinos_ENABLE_ALL_PACKAGES:BOOL=OFF   -D Trilinos_DUMP_PACKAGE_DEPENDENCIES=ON   -D Trilinos_ASSERT_MISSING_PACKAGES=OFF   -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=OFF
-D Trilinos_ENABLE_TESTS:BOOL=OFF   -D Trilinos_ENABLE_EXAMPLES:BOOL=ON   -D Trilinos_ENABLE_Export_Makefiles:BOOL=ON   -D Trilinos_ENABLE_Fortran:BOOL=ON     -D CMAKE_C_COMPILER=mpicc   -D CMAKE_CX
X_COMPILER=mpicxx   -D CMAKE_Fortran_COMPILER=mpif90   -D CMAKE_CXX_STANDARD:STRING=17     -D Trilinos_ENABLE_OpenMP:BOOL=ON     -D TPL_ENABLE_MPI:BOOL=ON   -D MPI_BASE_DIR=/scratch/projects/compile
rs/oneapi_2024.0/mpi/2021.11/intel64   -D MPI_INCLUDE_DIRS=/scratch/projects/compilers/oneapi_2024.0/mpi/2021.11/include   -D MPI_EXEC:FILEPATH='\''/opt/apps/xalt/0.6/bin/ibrun'\''   -D TPL_ENABLE_G
LM=OFF   -D TPL_ENABLE_Matio=OFF     -D TPL_ENABLE_BLAS=ON   -D BLAS_LIBRARY_DIRS:PATH='\''/scratch/projects/compilers/oneapi_2024.0/mkl/2024.0/lib/intel64'\''   -D BLAS_LIBRARY_NAMES:STRING='\''mkl
_intel_lp64;mkl_core;iomp5;pthread'\''   -D BLAS_INCLUDE_DIRS:PATH='\''/scratch/projects/compilers/oneapi_2024.0/mkl/2024.0/include'\''   -D LAPACK_INCLUDE_DIRS:PATH='\''/scratch/projects/compilers/
oneapi_2024.0/mkl/2024.0/include'\''   -D LAPACK_LIBRARY_DIRS:PATH='\''/scratch/projects/compilers/oneapi_2024.0/mkl/2024.0/lib/intel64'\''   -D LAPACK_LIBRARY_NAMES:STRING='\''mkl_intel_lp64;mkl_se
quential;mkl_core;iomp5;pthread'\''     -D TPL_ENABLE_HDF5:BOOL=   -D HDF5_INCLUDE_DIRS:PATH=/work/00434/eijkhout/hdf5/installation-phdf5-1.14.3-milan-intel24-impi/include      -D HDF5_LIBRARY_DIRS:
PATH=/work/00434/eijkhout/hdf5/installation-phdf5-1.14.3-milan-intel24-impi/lib      -D TPL_ENABLE_Netcdf:BOOL=ON   -D Netcdf_INCLUDE_DIRS:PATH=/work/00434/eijkhout/netcdf/installation-pnetcdf-4.9.2
-milan-intel24-impi/include      -D DTPL_Netcdf_LIBRARIES=/work/00434/eijkhout/netcdf/installation-pnetcdf-4.9.2-milan-intel24-impi/lib64/libnetcdf.so   -D NOT_Netcdf_LIBRARY_DIRS:PATH=/work/00434/e
ijkhout/netcdf/installation-pnetcdf-4.9.2-milan-intel24-impi/lib64     -D Tpetra_INST_DOUBLE:BOOL=ON   -D Tpetra_INST_FLOAT:BOOL=OFF   -D Tpetra_INST_COMPLEX_FLOAT:BOOL=OFF   -D Tpetra_INST_COMPLEX_
DOUBLE:BOOL=OFF   -D Tpetra_INST_INT_LONG:BOOL=OFF   -D Tpetra_INST_INT_UNSIGNED:BOOL=OFF     -D TPL_ENABLE_Boost:BOOL=OFF   -D Boost_INCLUDE_DIRS:PATH=/work/00434/eijkhout/boost/installation-boost-
1.83.0-milan-intel24/include        -D Boost_LIBRARY_DIRS:PATH=/work/00434/eijkhout/boost/installation-boost-1.83.0-milan-intel24/lib        -D TPL_ENABLE_BoostLib:BOOL=OFF   -D BoostLib_INCLUDE_DIR
S:PATH=/work/00434/eijkhout/boost/installation-boost-1.83.0-milan-intel24/include        -D BoostLib_LIBRARY_DIRS:PATH=/work/00434/eijkhout/boost/installation-boost-1.83.0-milan-intel24/lib
 -D TPL_ENABLE_MUMPS:BOOL=0   -D MUMPS_INCLUDE_DIRS=   -D MUMPS_LIBRARY_DIRS=   -D MUMPS_LIBRARY_NAMES:STRING=   -D VLE_TPL_MUMPS_LIBRARIES:STRING=   -D TPL_ParMETIS_LIBRARIES='\'''\''   -D TPL_ParM
ETIS_INCLUDE_DIRS=     -D TPL_ENABLE_yaml-cpp:BOOL=0   -D yaml-cpp_INCLUDE_DIRS:PATH=   -D yaml-cpp_LIBRARY_DIRS:PATH=     -D Trilinos_ENABLE_Amesos:BOOL=ON       -D Trilinos_ENABLE_Amesos2:BOOL=ON
      -D Amesos2_ENABLE_KLU2:BOOL=ON       -D Amesos2_ENABLE_Basker:BOOL=ON   -D Trilinos_ENABLE_Anasazi:BOOL=ON   -D Trilinos_ENABLE_AztecOO:Bool=ON   -D Trilinos_ENABLE_Belos:BOOL=ON   -D Trilinos
_ENABLE_Epetra:Bool=ON   -D Trilinos_ENABLE_EpetraExt:Bool=ON   -D                 Epetra_ENABLE_TESTS:BOOL=ON   -D Deprecated_Trilinos_ENABLE_ExodusII:Bool=ON   -D Trilinos_ENABLE_FEI:Bool=ON   -D
Trilinos_ENABLE_Ifpack:Bool=ON       -D Trilinos_ENABLE_Ifpack2:BOOL=ON   -D Trilinos_ENABLE_Intrepid:BOOL=ON       -D Trilinos_ENABLE_Intrepid2:BOOL=ON       -D Intrepid_ENABLE_TESTS:BOOL=ON   -D T
rilinos_ENABLE_Isorropia:BOOL=ON   -D Trilinos_ENABLE_ML:BOOL=ON       -D ML_TAKES_SUPERLU_LESS_THAN_5=TRUE       -D ML_ENABLE_SuperLU:BOOL=OFF   -D Trilinos_ENABLE_MOOCHO:BOOL=ON   -D Trilinos_ENAB
LE_MueLu:BOOL=   -D                 MueLu_ENABLE_Tutorial:BOOL=OFF   -D                 MueLu_ENABLE_EXAMPLES:BOOL=OFF   -D Trilinos_ENABLE_NOX=ON   -D                 NOX_ENABLE_TESTS:BOOL=OFF   -D
 Trilinos_ENABLE_Pamgen:Bool=ON   -D Trilinos_ENABLE_Panzer:Bool=ON   -D Trilinos_ENABLE_Phalanx:BOOL=ON       -D Phalanx_EXPLICIT_TEMPLATE_INSTANTIATION=ON       -D Phalanx_ENABLE_EXAMPLES=OFF   -D
 Trilinos_ENABLE_Piro:BOOL=ON   -D Trilinos_ENABLE_Rythmos:BOOL=ON   -D Trilinos_ENABLE_Sacado:Bool=ON   -D Trilinos_ENABLE_SEACAS:BOOL=ON       -D Trilinos_ENABLE_SEACASIoss:BOOL=ON       -D Trilin
os_ENABLE_SEACASBlot:BOOL=ON       -D Trilinos_ENABLE_SEACASExodus:BOOL=ON   -D Trilinos_ENABLE_SECONDARY_STABLE_CODE:BOOL=ON   -D Trilinos_ENABLE_Shards:BOOL=ON   -D Trilinos_ENABLE_ShyLU:BOOL=OFF
  -D Trilinos_ENABLE_Stokhos:BOOL=ON   -D Trilinos_ENABLE_Stratimikos:BOOL=ON   -D Trilinos_ENABLE_Teko:BOOL=ON   -D Trilinos_ENABLE_Teuchos:BOOL=ON       -D Teuchos_ENABLE_LONG_LONG_INT:BOOL=ON   -
D Trilinos_ENABLE_Thyra:BOOL=ON   -D Trilinos_ENABLE_Tpetra:BOOL=ON   -D Trilinos_ENABLE_TriKota:BOOL=ON   -D Trilinos_ENABLE_Zoltan:BOOL=ON       -D Trilinos_ENABLE_Zoltan2:BOOL=ON     -D KOKKOS_IS
_REQUIRED_FOR_SEVERAL_PACKAGES=off   -D Trilinos_ENABLE_Kokkos:BOOL=ON   -D Trilinos_ENABLE_KokkosCore:BOOL=ON      -D Phalanx_INDEX_SIZE_TYPE:STRING='\''INT'\''   -D Phalanx_SHOW_DEPRECATED_WARNING
S:BOOL=OFF   -D Kokkos_ENABLE_Serial:BOOL=ON   -D Kokkos_ENABLE_OPENMP:BOOL=ON   -D Kokkos_ENABLE_Pthread:BOOL=OFF     -D Trilinos_ENABLE_STK:BOOL=0       -D Trilinos_ENABLE_STKIO:BOOL=0       -D Tr
ilinos_ENABLE_STKMesh:BOOL=0     -D SWIG_EXECUTABLE:FILEPATH=/swig '

Output

ESC[0mProcessing enabled external package/TPL: Netcdf (enabled explicitly, disable with -DTPL_ENABLE_Netcdf=OFF)ESC[0m
ESC[0m-- Netcdf_FINDMOD='/work/00434/eijkhout/trilinos/trilinos-15.0.0/cmake/tribits/common_tpls/FindTPLNetcdf.cmake'ESC[0m
ESC[0m-- File Trace: TPL        INCLUDE    /work/00434/eijkhout/trilinos/trilinos-15.0.0/cmake/tribits/common_tpls/FindTPLNetcdf.cmakeESC[0m
ESC[0mTRIBITS_TPL_FIND_INCLUDE_DIRS_AND_LIBRARIES: NetcdfESC[0m
ESC[0m-- PARSE_REQUIRED_HEADERS='netcdf.h'ESC[0m
ESC[0m-- PARSE_REQUIRED_LIBS_NAMES='netcdf;pnetcdf'ESC[0m

(How do I turn off the CMake coloring?)

Steps to Reproduce

See cmake as above.
Full log attached.
trilinos.zip

@VictorEijkhout VictorEijkhout added the type: bug The primary issue is a bug in Trilinos code or tests label Feb 27, 2024
@VictorEijkhout
Copy link
Author

Reading the CMakeLists it seems you require both libnetcdf and libpnetcdf. Does the latter refer to the "parallel-netcdf" package, version 1.9 or so, and not the parallel version of netcdf, version 4.6 or so?

@VictorEijkhout
Copy link
Author

Please give clarification. Which parallel netcdf library are you expecting?

@VictorEijkhout
Copy link
Author

See #12857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The primary issue is a bug in Trilinos code or tests
Projects
None yet
Development

No branches or pull requests

1 participant