-
Notifications
You must be signed in to change notification settings - Fork 407
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
Set Kokkos_DEVICES and Kokkos_ARCH variables in exported CMake configuration #2193
Comments
Current version of #2104 would break Cabana and ArborX. Both projects have some logic to instantiate code or enable examples/tests that rely on knowing at configuration time what devices were enabled at the time Kokkos was built. CC: @junghans |
Adding a reference to the helper function I had proposed at the user meeting (see also #2064) which let the user code assert that a backend has been enabled. kokkos/core/cmake/kokkos-config.cmake.in Lines 60 to 92 in 839229d
|
I agree, exporting devices would be very useful. |
We need this for FLeCSI too |
Another option would be to set the these as properties in
then we could process them in Cabana and FleCSI with:
and everything is transparently attached to the |
@crtrott : any update on this? |
@dalg24 : Great! Thank you |
On a related note, we need to make sure downstream code that do
find_package(Kokkos)
will be able to deduce the list of devices that where enabled at the time Kokkos was built.c.f. arborx/ArborX#73 (comment)
Originally posted by @dalg24 in #2175 (comment)
The text was updated successfully, but these errors were encountered: