kokkos / kokkos/mdspan

Wiki tutorial seems out of date

Open
#104 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
507
Forks
87
Avg merge
15h 27m
Merged PRs (30d)
2

Description

First-time mdspan user here so I might be mistaken.

As an example, the following code from https://github.com/kokkos/mdspan/wiki/A-Gentle-Introduction-to-mdspan#what-is-mdspan doesn't compile with the mdspan-0.2.0 release:

int* data = /* ... */
auto ms = std::mdspan<int, 2, 2>(data);

Since a type template argument is expected where 2 is given.

It seems the current correct way of saying the above is:

auto ms = std::mdspan (data, 2, 2);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the Wiki section “What is mdspan” linked in the issue and compare its example with the mdspan-0.2.0 API. Update the outdated construction example, then verify that the revised snippet compiles with that release.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.