Repository navigation
Move to mdspan 5.3.0 and the Kokkos namespace - #68
Merged
Merged
Conversation
dimitrivlachos
added a commit
to DiamondLightSource/fast-feedback-service
that referenced
this pull request
Dec 4, 2026
This moves the mdspan backport from 0.6.0 to 5.3.0 and ports the code to its namespace. The monthly pin update (#188) failed CI, first hitting `std::experimental::dextents` in dx2. From 5.x the `<experimental/mdspan>` compatibility header re-exports only a handful of names into `std::experimental`, and `dextents` is not among them. The code now includes `<mdspan/mdspan.hpp>` and uses `Kokkos::mdspan` and `Kokkos::dextents`. That header does not exist at `mdspan-0.6.0`, so the port and the pin move together. This depends on the same port in dx2 (dials/dx2#68) and picks it up as a submodule bump once that merges. A move to the standard `std::mdspan`, which needs C++23, is planned as a follow-up. ### Changes - Bumped the mdspan pin to 5.3.0. - Switched every mdspan include and alias to the Kokkos namespace. - Moved the dx2 submodule to the commit carrying the same port.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR moves the mdspan backport from 0.6.0 to 5.3.0 and ports the
code to its namespace. The monthly pin update in fast-feedback-service
(DiamondLightSource/fast-feedback-service#188) failed CI on
std::experimental::dextentsin dx2. From 5.x the<experimental/mdspan>compatibility header re-exports only a handfulof names into
std::experimental, anddextentsis not among them.The code now includes
<mdspan/mdspan.hpp>and usesKokkos::mdspanand
Kokkos::dextents.The fast-feedback-service side is
DiamondLightSource/fast-feedback-service#189, which picks this up as a
submodule bump once it merges.
Changes
5.3.0tag.mdspan::mdspan, as 5.x only providesstd::mdspanwhenbuilt with an option that is off by default.