Skip to content

core: update to kokkos 5.0.02 update#377

Open
IvanGrigorik wants to merge 4 commits intomainfrom
grigorik/kokkos-5.0.02-update
Open

core: update to kokkos 5.0.02 update#377
IvanGrigorik wants to merge 4 commits intomainfrom
grigorik/kokkos-5.0.02-update

Conversation

@IvanGrigorik
Copy link
Copy Markdown
Collaborator

This PR updates the Kokkos version from 4.7.01 to 5.0.02

@IvanGrigorik IvanGrigorik requested a review from JBludau February 26, 2026 17:25
@IvanGrigorik IvanGrigorik force-pushed the grigorik/kokkos-5.0.02-update branch from bb5b3fb to 5e9fe94 Compare February 26, 2026 17:38
@IvanGrigorik IvanGrigorik force-pushed the grigorik/kokkos-5.0.02-update branch from 5e9fe94 to 66aad01 Compare February 26, 2026 17:43
@IvanGrigorik
Copy link
Copy Markdown
Collaborator Author

There is some problem with CI itself
The local build are good

Comment on lines +158 to +160
IF(Kokkos_ENABLE_CUDA_UVM)
SET(Kokkos_ENABLE_DEPRECATED_CODE_4 ON CACHE BOOL "Required for Kokkos_ENABLE_CUDA_UVM in Kokkos 5+" FORCE)
ENDIF()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm do we know why we require this? because this will go away eventually

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without that, we will run into an issue during the PyKokkos compilation process:

CMake Error at _skbuild/linux-x86_64-3.13/cmake-build/_deps/kokkos-src/cmake/kokkos_arch.cmake:1422 (message):
  Kokkos_ENABLE_DEPRECATED_CODE_4 must be set to use Kokkos_ENABLE_CUDA_UVM
Call Stack (most recent call first):
  _skbuild/linux-x86_64-3.13/cmake-build/_deps/kokkos-src/cmake/kokkos_tribits.cmake:161 (include)
  _skbuild/linux-x86_64-3.13/cmake-build/_deps/kokkos-src/CMakeLists.txt:212 (kokkos_setup_build_environment)

If we want to remove unified memory support, we should remove this option altogether, but that definitely should be a different PR, since there are multiple dependencies in the core

@JBludau
Copy link
Copy Markdown
Contributor

JBludau commented Feb 26, 2026

There are some deprecations in Kokkos 5 that we hit in the CI. I have a local version that fixes these. Is it fine if I push to your branch?

@IvanGrigorik
Copy link
Copy Markdown
Collaborator Author

IvanGrigorik commented Feb 26, 2026

There are some deprecations in Kokkos 5 that we hit in the CI. I have a local version that fixes these. Is it fine if I push to your branch?

Sure. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants