trilinos / trilinos.github.io

Trilinos Project Homepage
https://trilinos.github.io
30 stars 23 forks source link

Petsc #47

Closed VictorEijkhout closed 9 months ago

VictorEijkhout commented 3 years ago

How does Trtilinos decide to pick up petsc? I don't have it anywhere in my cmake specification, yet petsc libraries show up during the make stage.

What's more;, the wrong petsc libraries show up, despite me trying to put the right petsc in the environment.

I'm better that's why my make crashes

/opt/apps/intel18/impi/18.0.2/bin/mpicxx  -g -xCORE-AVX2 -axMIC-AVX512,CORE-AVX512 -O2 -mkl -DMPICH_SKIP_MPICXX -std=c++11 -O3 -DNDEBUG   CMakeFiles/Intrepid_test_Discretization_FunctionSpaceTools_Test_0\
5.dir/test_05.cpp.o  -o Intrepid_test_Discretization_FunctionSpaceTools_Test_05.exe  -Wl,-rpath,/tmp/trilinos-build/packages/intrepid/src:/tmp/trilinos-build/packages/pamgen/src:/tmp/trilinos-build/packa\
ges/amesos/src:/tmp/trilinos-build/packages/epetraext/src:/tmp/trilinos-build/commonTools/gtest:/tmp/trilinos-build/packages/shards/src:/tmp/trilinos-build/packages/sacado/src:/tmp/trilinos-build/package\
s/triutils/src:/opt/apps/intel18/impi18_0/phdf5/1.10.4/x86_64/lib:/tmp/trilinos-build/packages/epetra/src:/tmp/trilinos-build/packages/teuchos/kokkoscomm/src:/tmp/trilinos-build/packages/teuchos/kokkosco\
mpat/src:/tmp/trilinos-build/packages/teuchos/remainder/src:/tmp/trilinos-build/packages/teuchos/numerics/src:/tmp/trilinos-build/packages/teuchos/comm/src:/tmp/trilinos-build/packages/teuchos/parameterl\
ist/src:/tmp/trilinos-build/packages/teuchos/parser/src:/tmp/trilinos-build/packages/teuchos/core/src:/tmp/trilinos-build/packages/kokkos/core/src:/tmp/trilinos-build/packages/common/auxiliarySoftware/Su\
iteSparse/src ../../../src/libintrepid.so.12.18.1 ../../../../pamgen/src/libpamgen_extras.so.12.18.1 ../../../../pamgen/src/libpamgen.so.12.18.1 ../../../../amesos/src/libamesos.so.12.18.1 ../../../../ep\
etraext/src/libepetraext.so.12.18.1 ../../../../../commonTools/gtest/libgtest.so.12.18.1 ../../../../shards/src/libshards.so.12.18.1 ../../../../sacado/src/libsacado.so.12.18.1 ../../../../triutils/src/l\
ibtriutils.so.12.18.1 /opt/apps/intel18/impi18_0/phdf5/1.10.4/x86_64/lib/libhdf5.so /usr/lib64/libz.so /opt/apps/intel18/impi18_0/phdf5/1.10.4/x86_64/lib/libhdf5_hl.so ../../../../epetra/src/libepetra.so\
.12.18.1 ../../../../teuchos/kokkoscomm/src/libteuchoskokkoscomm.so.12.18.1 ../../../../teuchos/kokkoscompat/src/libteuchoskokkoscompat.so.12.18.1 ../../../../teuchos/remainder/src/libteuchosremainder.so\
.12.18.1 ../../../../teuchos/numerics/src/libteuchosnumerics.so.12.18.1 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread ../../../../teuchos/c\
omm/src/libteuchoscomm.so.12.18.1 ../../../../teuchos/parameterlist/src/libteuchosparameterlist.so.12.18.1 ../../../../teuchos/parser/src/libteuchosparser.so.12.18.1 ../../../../teuchos/core/src/libteuch\
oscore.so.12.18.1 ../../../../kokkos/core/src/libkokkoscore.so.12.18.1 /usr/lib64/libdl.so ../../../../common/auxiliarySoftware/SuiteSparse/src/libtrilinosss.so.12.18.1 -lm /home1/apps/intel18/impi18_0/p\
etsc/3.12/skylake/lib/libdmumps.a /home1/apps/intel18/impi18_0/petsc/3.12/skylake/lib/libmumps_common.a /home1/apps/intel18/impi18_0/petsc/3.12/skylake/lib/libpord.a
/admin/build/admin/rpms/stampede2/BUILD/trilinos-12.18.1/packages/percept/src/percept/function/StringFunction.cpp(488): (col. 5) remark: _ZN7percept14StringFunctionclERN8Intrepid14FieldContainerIdLi0EEES\
4_RKN3stk4mesh6BucketERKS3_d has been targeted for automatic cpu dispatch
/admin/build/admin/rpms/stampede2/BUILD/trilinos-12.18.1/packages/kokkos/core/src/Kokkos_View.hpp(2263): (col. 5) remark: _ZN6Kokkos4ViewIPxJNS_11LayoutRightENS_6DeviceINS_6SerialENS_9HostSpaceEEEvEEC1IA\
23_cEERKT_NSt9enable_ifIXsr6Kokkos4Impl13is_view_labelISA_EE5valueEKmE4typeEmmmmmmm has been targeted for automatic cpu dispatch
/opt/apps/gcc/6.3.0/include/c++/6.3.0/bits/vector.tcc(451): (col. 5) remark: _ZNSt6vectorIiSaIiEE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPiS1_EEmRKi has been targeted for automatic cpu dispatch
/opt/apps/gcc/6.3.0/include/c++/6.3.0/bits/stl_algobase.h(750): (col. 5) remark: _ZSt10__fill_n_aIPdmdEN9__gnu_cxx11__enable_ifIXsr3std11__is_scalarIT1_EE7__valueET_E6__typeES4_T0_RKS3_ has been targeted\
 for automatic cpu dispatch
/opt/apps/gcc/6.3.0/include/c++/6.3.0/bits/stl_algobase.h(750): (col. 5) remark: _ZSt10__fill_n_aIPimiEN9__gnu_cxx11__enable_ifIXsr3std11__is_scalarIT1_EE7__valueET_E6__typeES4_T0_RKS3_ has been targeted\
 for automatic cpu dispatch
/opt/apps/gcc/6.3.0/include/c++/6.3.0/bits/stl_algobase.h(693): (col. 5) remark: _ZSt8__fill_aIPiiEN9__gnu_cxx11__enable_ifIXsr3std11__is_scalarIT0_EE7__valueEvE6__typeET_S6_RKS3_ has been targeted for a\
utomatic cpu dispatch
/opt/apps/gcc/6.3.0/include/c++/6.3.0/bits/stl_algobase.h(750): (col. 5) remark: _ZSt10__fill_n_aIPdldEN9__gnu_cxx11__enable_ifIXsr3std11__is_scalarIT1_EE7__valueET_E6__typeES4_T0_RKS3_ has been targeted\
 for automatic cpu dispatch
/admin/build/admin/rpms/stampede2/BUILD/trilinos-12.18.1/packages/kokkos/core/src/Kokkos_View.hpp(2263): (col. 5) remark: _ZN6Kokkos4ViewIPmJNS_10LayoutLeftENS_6DeviceINS_6SerialENS_9HostSpaceEEENS_12Mem\
oryTraitsILj0EEEEEC1IA22_cEERKT_NSt9enable_ifIXsr6Kokkos4Impl13is_view_labelISC_EE5valueEKmE4typeEmmmmmmm has been targeted for automatic cpu dispatch
/opt/apps/gcc/6.3.0/include/c++/6.3.0/bits/stl_vector.h(294): (col. 7) remark: _ZNSt6vectorIxSaIxEEC1EmRKxRKS0_ has been targeted for automatic cpu dispatch
/admin/build/admin/rpms/stampede2/BUILD/trilinos-12.18.1/packages/percept/src/percept/function/StringFunction.cpp(60): (col. 5) remark: _ZN7percept14StringFunction4initEv has been targeted for automatic \
cpu dispatch
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `blacs_gridinfo_'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `scotchfgraphexit_'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `scotchfstratdgraphorder_'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `pdpotrf_'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `pdgetrs_'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `ParMETIS_V3_NodeND'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `blacs_gridexit_'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `METIS_PartGraphKway'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `metis_setdefaultoptions_'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `scotchfstratinit_'
../../../../amesos/src/libamesos.so.12.18.1: undefined reference to `scotchfstratexit_'
amklinv-nnl commented 3 years ago

Can you attach your cmake specification and the cmake output?

VictorEijkhout commented 3 years ago

Oh great. This system does not allow tgz files. trilinos.log.zip

keitat commented 3 years ago

Victor, I recommend to report this to https://github.com/trilinos/Trilinos. This repository is intended to keep the materials for the Trilinos website.

amklinv-nnl commented 3 years ago

According to the log you sent, PETSc is not being processed as a dependency, but it is finding dependencies that PETSc installed (like MUMPS). Just look for petsc in your trilinos-[MORE STUFF].log

VictorEijkhout commented 3 years ago

On , 2021Apr9, at 11:46, Keita Teranishi @.**@.>> wrote:

Victor, I recommend to report this to https://github.com/trilinos/Trilinos. This repository is intended to keep the materials for the Trilinos website.

This repository is the only one that is linked from your homepage. So that’s where I submit a problem ticket.

Victor.

ccober6 commented 3 years ago

Hi Victor,

Sorry to hop in here, but I wanted to understand the confusion here, so we might be able to fix it. I agree that this should be submitted to https://github.com/trilinos/Trilinos, as it is the github site for Trilinos. While this is the repo for the Trilinos website. You mentioned a link "from your homepage". What was that homepage?

Thanks, Curt

VictorEijkhout commented 3 years ago

On , 2021Apr9, at 12:11, Curtis Ober @.**@.>> wrote:

What was that homepage?

https://trilinos.github.io/

Number one search result in Duckduckgo.

Victor.

VictorEijkhout commented 3 years ago

According to the log you sent, PETSc is not being processed as a dependency, but it is finding dependencies that PETSc installed (like MUMPS).

You’re right. That fixed it. Thanks.

Victor.

ccober6 commented 9 months ago

Closing as fixed.