-
Notifications
You must be signed in to change notification settings - Fork 567
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
STK: error compiling Trilinos is ArborX is visible #13555
Comments
Alternatively, STK could use ArborX unconditionally whenever it is available. However, that would require ArborX and Trilinos to be built against the same external Kokkos. This is likely to be more involved. |
Hi @aprokop , thanks for reporting this. If someone is building stk within trilinos, I don't know how to handle the issue of different versions of Kokkos. In general, we should probably try to detect whether ArborX is available (with find_package?) and if it is then use it. Perhaps your suggested patch above is a good first step, and then we will proceed to enable using ArborX whenever it is available. |
Right now, STK within Trilinos does not build if ArborX is detected. As you don't use ArborX when building within Trilinos, this just patches the current hole.
I don't have a good idea. I think it may become common when Trilinos is built against an external Kokkos, and some of the Trilinos packages have dependencies that also depend on Kokkos. It may be just that it's user's responsibility at the moment to ensure the same version. Like, Kokkos and Kokkos-Kernels. What I don't know how to handle at all is when building STK with Kokkos snapshotted in Trilinos, while also using ArborX. |
ok thanks @aprokop . I'm applying your suggested patch to stk in sierra, it will come to trilinos/develop as soon as we can get another snapshot together. |
@aprokop the stk snapshot PR got held up a little bit for unrelated testing issues, but I've got it trying again now. I ended up modifying your proposed cmake patch to be |
@alanw0 @trilinos/stk
Compiling STK within Trilinos (latest
develop
) when ArborX is in the path leads to errors during configuration due to clashing Kokkos targets:In
stk_search/CMakeLists.txt
, ArborX is linked only within the!HAVE_STK_TRILINOS
clause.Thus, I think similar thing should be done in the root CMake. So, I propose the following patch to STK:
The text was updated successfully, but these errors were encountered: