-
Notifications
You must be signed in to change notification settings - Fork 572
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
Building Examples Fail: Linking against trilinos error #13697
Comments
Would you mind posting how you ran |
I built Trilinos with cmake-gui. Here is the corresponding output.
|
It looks like you are building with OpenMP disabled. So I don't think that the lack of OpenMP flags is a Trilinos issue. Do any of the TPLs require OpenMP? |
To me it looks like its explicitly enabled and some dependencies do use it for sure but I have moved past this issue with the linker flags even though my Examples directory is empty. Is there something we can do about this message I get when trying to link against Trilinos?
|
Yes, could you have a look in your build directory? There should be a file
also, could you enable the ML examples ( |
Ok, can you show the error that you get from the examples in Trilinos? |
So I have added the |
Here is my output from ML_operator.exe:
Elmer then proceeds to link successfully against Trilinos. The advanced example ML_ml_analyze.exe with the preconditioner_test requires amesos:
That results in undefined references to MPI symbols even though MPI is enabled in my Trilinos build.
I am not really sure if this is a real issue, though Elmer seems to be interested in Trilinos preconditioners. Update: |
Can you double-check as before that ML thinks that Amesos is enabled by looking at |
My best guess is that Amesos is indeed correctly enabled, but KLU was not enabled in Amesos. |
I tried with KLU but that particular error didn't change, but I have managed to build Elmer now so perhaps I shouldn't bother further unless I get a related elmersolver error? |
That's up to you. It's a bit mysterious why the particular coarse grid solver doesn't get enabled. Overall, I wouldn't expect a big difference in performance as long as the coarse grid problem is reasonably small. We simply don't use a lot of Epetra builds anymore. |
Sorry, I think that was because I hadn't installed the new libraries. Now the example is running but I think its running the KLU serial solver as there is no error message and 1 thread is pegged. Not sure how long it will take to finish. I found this which is quite useful: Update: Seems to have segfaulted on Aztec
|
Huh. Well, the code will be dropped in the next year, so I don't see a point in tracking down what happened there. I'm assuming you can run Elmer now? |
I will have to run some cases to find out. I might have a look at this example through valgrind but the KLU solver would take a long time to run through that given how long it took without valgrind. |
Hi,
The Trilinos examples fail to build. Initially complaining about missing gfortran and openmp flags.
I am also trying to link Elmer against Trilinos 16 but I am getting the following error:
I have built ML with epetra and teuchos.
Any help would be very much appreciated.
Cheers
The text was updated successfully, but these errors were encountered: