Trilinos, Albany: getting Albany and Trilinos to compile again using spack#14215
Trilinos, Albany: getting Albany and Trilinos to compile again using spack#14215ikalash wants to merge 3 commits intospack:developfrom
Conversation
…mpile. This change includes fixing the repo path for Albany, and removing obsolete compilation options in Albany.
|
@balay Does the Trilinos update in this PR pose an issue for xSDK builds? It also seems interesting that we never saw that |
|
It looks like one of the Travis CI checks failed. I just looked at it and it doesn't look like the issue has anything to do with my changes: https://travis-ci.org/spack/spack/jobs/626912608?utm_medium=notification&utm_source=github_status . How do we proceed in this case? I'm guessing it won't be possible to merge the branch w/o the checks passing? |
|
@aprokop I get a couple of build failures in dependent packages - dealii, phist dealii: phist: etc.. |
@ikalash for such CI errors - I would make some change in the PR branch - this will trigger a new CI test. [for ex: rebase the PR branch over latest develop branch] |
|
@balay Thanks for checking! The dealii error has nothing to do with this change, it was due to MueLu removing/deprecating that function and header file. The PHIST one, though, is quite relevant, and needs to be checked. |
|
@aprokop dealii builds fine for me without this change [i.e with spack/develop]- so somehow this change is triggering a build error with dealii. This behaviour occurred with multiple linux builds I had tried [all on a centos7 linux box]
|
|
Thanks for looking at it. If I re-trigger the build, I suspect the dealii issue will persist (right?). How should we proceed in this case? |
|
It looks like this patch disable |
|
After looking at it with @Rombur, it seems that we have the following conflict:
I think an appropriate workaround for the issue would be to create a multi-valued global ordinal variant for the Trilinos spack package. Default it to |
|
@aprokop : we might be able to use |
|
So, it turns out I cannot use |
|
I think the solution is to allow global ordinal to be customizable in the spack package. This should satisfy everybody. |
|
@aprokop : I agree completely. I'm pretty new to spack. What would be the best way to accomplish what you are proposing? Add a |
I'll do it. |
|
Thanks @aprokop ! Let me know when it's ready to I can modify the albany package.py file and test. |
|
I added a multivalued variant @balay Can you please test this update again? As the default has not changed, it should pass the tests. @ikalash Please test the update (I already patched Albany to use Before this PR is merged, though, we'll need to go through other packages and check that it does not break them: |
|
I'm testing b503bb0 and still get errors building dealii |
|
phist build is clean [with this change] |
|
Albany build is good! |
|
I have trouble figuring out why |
|
The answer from MueLu team: So, we have a problem now:
Really not sure what to do next... |
|
What is dealii? Albany does not depends on it unless it’s somehow needed for Trilinos without me knowing it. |
|
Also it’s weird to me that Muelu epetra support cannot be disabled on its own. I did not know you could run muelu with epetra. |
|
deal.II is a finite element library which like |
|
Since Albany does not depend on dealii, can we just modify the logic to use GO=int for dealii? Or, is the problem that dealii and phist need to co-exist and have the same GO, which is not possible right now per @aprokop 's comment above? |
|
@ikalash xSDK is an ECP project. One of the xSDK's project goals is to be able to install multiple math libraries together using Spack. These include Trilinos, dealii, phist, and many others. Prior to the recent changes in Tpetra it was possible using a single version of Trilinos in spack. Now it is not. |
|
Any updates on this issue? Seems it has reached an impasse due to the xSDK issue described above. |
|
No updates from me. |
|
Would be nice to have this merged to get the global ordinal types in. Otherwise Trilinos is broken here for my project. |
|
I guess the only way to make further progress here is to have multiple Trilinos installations within xsdk, making dealii depend on |
…ng dealii to GO int, to make it compile again
…alii to GO int, to make it compile again (#15288) Co-authored-by: Andrey Prokopenko <[email protected]>
@aprokop wrt xsdk - I think we should prefer not to have multiple installs of a given xsdk pacakge. within 'spack install xsdk' . Does spack allow that? And I think its best to not merge in changes that would break [email protected] - the current release. Any fixes should be tested with @devel version of packages - that are likely to be part of future releases |
|
I ended up just creating my own fork of spack to use with Albany - decided it's easier than trying to get changes into develop. Just wanted to let you know. I'm OK closing the PR given this situation. |
The packages.py file for albany was outdated - the repo has moved since last time this file was updated, and a number of packages were removed from the develop branch. I've updated the file to reflect these changes. @gahansen has reviewed/approved them already.
Trilinos had multiple global ordinal types defined in the case it was being built with ETI, leading to the following configuration error:
My changes fix the problem.