[Trilinos-Users] Linking problem

Villa Andrea (RSE) Andrea.Villa at rse-web.it
Thu Nov 5 04:29:42 EST 2015


I'm currently experiencing some problems linking Trilinos in my applications. I get the following message

/home/avilla/Documenti/trilinos-12.2.1-release/lib/libtpetra.a(Tpetra_Map.cpp.o): In function `Teuchos::RCPNodeTmpl<Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>, Teuchos::DeallocDelete<Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace> > >::delete_obj()':
Tpetra_Map.cpp:(.text._ZN7Teuchos11RCPNodeTmplIN6Kokkos6Compat23KokkosDeviceWrapperNodeINS1_6SerialENS1_9HostSpaceEEENS_13DeallocDeleteIS6_EEE10delete_objEv[_ZN7Teuchos11RCPNodeTmplIN6Kokkos6Compat23KokkosDeviceWrapperNodeINS1_6SerialENS1_9HostSpaceEEENS_13DeallocDeleteIS6_EEE10delete_objEv]+0x39): undefined reference to `Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>::~KokkosDeviceWrapperNode()'
/home/avilla/Documenti/trilinos-12.2.1-release/lib/libtpetra.a(Tpetra_Map.cpp.o): In function `Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>::KokkosDeviceWrapperNode(Teuchos::ParameterList&)':
Tpetra_Map.cpp:(.text._ZN6Kokkos6Compat23KokkosDeviceWrapperNodeINS_6SerialENS_9HostSpaceEEC2ERN7Teuchos13ParameterListE[_ZN6Kokkos6Compat23KokkosDeviceWrapperNodeINS_6SerialENS_9HostSpaceEEC5ERN7Teuchos13ParameterListE]+0x5ea): undefined reference to `Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>::count'
Tpetra_Map.cpp:(.text._ZN6Kokkos6Compat23KokkosDeviceWrapperNodeINS_6SerialENS_9HostSpaceEEC2ERN7Teuchos13ParameterListE[_ZN6Kokkos6Compat23KokkosDeviceWrapperNodeINS_6SerialENS_9HostSpaceEEC5ERN7Teuchos13ParameterListE]+0x600): undefined reference to `Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>::init(int, int, int, int)'
Tpetra_Map.cpp:(.text._ZN6Kokkos6Compat23KokkosDeviceWrapperNodeINS_6SerialENS_9HostSpaceEEC2ERN7Teuchos13ParameterListE[_ZN6Kokkos6Compat23KokkosDeviceWrapperNodeINS_6SerialENS_9HostSpaceEEC5ERN7Teuchos13ParameterListE]+0x606): undefined reference to `Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>::count'
Tpetra_Map.cpp:(.text._ZN6Kokkos6Compat23KokkosDeviceWrapperNodeINS_6SerialENS_9HostSpaceEEC2ERN7Teuchos13ParameterListE[_ZN6Kokkos6Compat23KokkosDeviceWrapperNodeINS_6SerialENS_9HostSpaceEEC5ERN7Teuchos13ParameterListE]+0x617): undefined reference to `Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial, Kokkos::HostSpace>::count'
collect2: error: ld returned 1 exit status

It seems that Kokkos::Compat::KokkosDeviceWrapperNode is missing but I don't really know in which library is defined. Currently I use the following link-list

 -lnoxlapack \
 -lnoxepetra \
 -lnox \
 -lbelos \
 -lbelosepetra \
 -lml \
 -lifpack \
 -lamesos \
 -laztecoo \
 -lzoltan \
 -lepetraext \
 -lepetra \
 -ltpetra \
 -ltpetraext \
 -ltpetraclassicnodeapi \
 -ltpetrakernels \
 -lkokkosalgorithms \
 -lkokkoscontainers \
 -lkokkostsqr \
 -lkokkoscore \
 -ltpi \
 -lthyracore \
 -lthyratpetra \
 -lthyraepetra \
 -lthyraepetraext \
 -lrtop \
 -lteuchosremainder \
 -lteuchosnumerics \
 -lteuchosparameterlist \
 -lteuchoscomm \
 -lteuchoscore \
 -ltriutils \
 -lhdf5 \
 -lparmetis \
 -lmetis \
 -lboost_mpi \
 -lboost_thread \
 -lboost_serialization \
 -lboost_container \
 -lboost_system \
 -llapack \
 -lblas \
 -lgfortran \
 -lz

and I've used the following configuration script:

EXTRA_ARGS=$@

cmake \
-D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D Trilinos_ENABLE_TESTS:BOOL=OFF \
-D CMAKE_CXX_FLAGS:STRING="-DBOOST_SP_DISABLE_THREADS" \
-D CMAKE_INSTALL_PREFIX:PATH=/home/avilla/Documenti/trilinos-12.2.1-release \
-D MEMORYCHECK_COMMAND:FILEPATH=/usr/bin \
-D DART_TESTING_TIMEOUT:STRING=600 \
-D TPL_ENABLE_MPI:BOOL=ON \
-D TPL_ENABLE_HDF5:BOOL=ON \
-D TPL_ENABLE_Boost:BOOL=OFF \
-D TPL_ENABLE_Netcdf:BOOL=OFF \
-D TPL_Boost_INCLUDE_DIRS:PATH=/home/avilla/Documenti/boost-1.59.0-release/include \
-D TPL_BoostLib_LIBRARIES:PATH=/home/avilla/Documenti/boost-1.59.0-release/lib \
-D HDF5_INCLUDE_DIRS:PATH=/home/avilla/Documenti/hdf5-1.8.15-release/include \
-D HDF5_LIBRARY_DIRS:PATH=/home/avilla/Documenti/hdf5-1.8.15-release/lib \
-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
-D Trilinos_ENABLE_SEACAS:BOOL=OFF \
-D Trilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON \
$EXTRA_ARGS \
../

Thank you very much.
Andrea Villa.

RSE SpA ha adottato il Modello Organizzativo ai sensi del D.Lgs.231/2001, in forza del quale l'assunzione di obbligazioni da parte della Società avviene con firma di un procuratore, munito di idonei poteri.
RSE adopts a Compliance Programme under the Italian Law (D.Lgs.231/2001). According to this RSE Compliance Programme, any commitment of RSE is taken by the signature of one Representative granted by a proper Power of Attorney. Le informazioni contenute in questo messaggio di posta elettronica sono riservate e confidenziali e ne e' vietata la diffusione in qualsiasi modo o forma. Qualora Lei non fosse la persona destinataria del presente messaggio, La invitiamo a non diffonderlo e ad eliminarlo, dandone gentilmente comunicazione al mittente. The information included in this e-mail and any attachments are confidential and may also be privileged. If you are not the correct recipient, you are kindly requested to notify the sender immediately, to cancel it and not to disclose the contents to any other person.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20151105/2f60a77f/attachment.html>


More information about the Trilinos-Users mailing list