Skip to content

Move to mdspan 5.3.0 and the Kokkos namespace - #68

Merged
dimitrivlachos merged 1 commit into
mainfrom
mdspan-kokkos
Dec 4, 2026
Merged

dimitrivlachos merged 1 commit into
mainfrom
mdspan-kokkos

Conversation

@dimitrivlachos

Copy link
Copy Markdown
Collaborator

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::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.

The fast-feedback-service side is
DiamondLightSource/fast-feedback-service#189, which picks this up as a
submodule bump once it merges.

Changes

  • Bumped the FetchContent fallback to the 5.3.0 tag.
  • Switched the mdspan includes and alias to the Kokkos namespace.
  • Linked mdspan::mdspan, as 5.x only provides std::mdspan when
    built with an option that is off by default.

@dimitrivlachos dimitrivlachos self-assigned this Dec 4, 2026
@dimitrivlachos
dimitrivlachos merged commit 08393d2 into main Dec 4, 2026
5 checks passed
@dimitrivlachos
dimitrivlachos deleted the mdspan-kokkos branch December 4, 2026 15:21
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.
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.

1 participant