Replies: 4 comments 6 replies
-
@eeprude I don't think Trilinos is using GKlib anywhere. This would explain why it isn't exposed as a TPL. You could check how the spack package for METIS is set up. It also looks like the TPL detection in Trilinos for METIS and ParMETIS has not been updated to use CMake |
Beta Was this translation helpful? Give feedback.
-
Thanks again, Christian. I have been using only static libraries for GK, METIS, ParMETIS, and Scotch (all ".a" files). Have you ever tried with a Mac? Maybe this is an issue happening only on Macs? |
Beta Was this translation helpful? Give feedback.
-
@egboman @trilinos/zoltan2 |
Beta Was this translation helpful? Give feedback.
-
I think GKlib is fairly new (well maybe a few years), at least it didn't exist when these examples were written. The confusing thing is that some versions of Metis need GKlib and others don't. In this case, using the latest version from Github might not be such a good idea since we don't test that :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I am successfully using Trilinos with Zoltan2 in my MacBook Pro (2022, Apple M1 Pro, Sequoia 15.5). I have installed the following 4 libraries: GK, METIS, ParMETIS, and Scotch. I am also able to generate and run the Zoltan2 examples. I am using METIS 5.2.1 and ParMETIS 4.0.3 (both versions downloaded from their git repositories).
But I have to use a hack for the linking issue: adding "-L<INSTALL_PATH>/gklib/lib -lGKlib” to -DCMAKE_CXX_FLAGS:STRING="..." during the configuration of Trilinos.
What is the proper way to inform the building process where to find the GK library, instead of the hack mentioned above? Maybe I have to add something in packages/zoltan2/example/graph/CMakeLists.txt ?
Thank you in advance,
Ernesto.
PS 1: I added the gklib paths in the LIBRARY_DIRS and INCLUDE_DIRS of METIS and ParMETIS on the hope that the building process would find the GK library there, but without success
PS 2: I even copied the libGKlib.a file into parmetis/lib and metis/lib installations, but again without sucess
PS 3: I also tried -DTPL_ENABLE_GK + GK_LIBRARY_DIRS + GK_LIBRARY_INCLUDES, but those flags are ignored.
Beta Was this translation helpful? Give feedback.
All reactions