From 896d753ef1fbf8f8e77c6e74f5ee3a5bf176cc8e Mon Sep 17 00:00:00 2001 From: Christian Trott Date: Wed, 3 May 2023 15:25:56 -0600 Subject: [PATCH 1/2] Start with mdarray.hpp for single header --- .github/workflows/single-header.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/single-header.yml b/.github/workflows/single-header.yml index 6f74ee8f..7ee0004c 100644 --- a/.github/workflows/single-header.yml +++ b/.github/workflows/single-header.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@v2 - run: sudo apt-get install python3 - - run: ./make_single_header.py ./include/experimental/mdarray > /tmp/mdspan.hpp + - run: ./make_single_header.py ./include/mdspan/mdarray.hpp > /tmp/mdspan.hpp - uses: actions/checkout@v2 with: ref: single-header From 36186a786578c5cd76c977da5e2ea6bcb92ec3d1 Mon Sep 17 00:00:00 2001 From: Christian Trott Date: Wed, 3 May 2023 15:40:44 -0600 Subject: [PATCH 2/2] Update readme to reflect that the single header has Kokkos namespace --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c4af5ed..c8512ef7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Reference `mdspan` implementation The ISO-C++ proposal [P0009](https://wg21.link/p0009) will add support for non-owning multi-dimensional array references to the C++ standard library. This repository aims to provide a production-quality implementation of the proposal as written (with a few caveats, see below) in preparation for the addition of `mdspan` to the standard. Please feel free to use this, file bugs when it breaks, and let us know how it works for you :-) -[Try it out on Godbolt](https://godbolt.org/z/Mxa7cej1a){: .btn } +[Try it out on Godbolt](https://godbolt.org/z/or8eTj4Gx){: .btn } During the final leg of the ISO C++ committee review process a number of breaking changes were proposed and accepted (issue #136). These are now merged into the stable branch. @@ -13,6 +13,8 @@ Note: There is a tag mdspan-0.4.0 which reflects the status of P0009 before * renaming `pointer`, `data`, `is_contiguous` and `is_always_contiguous`; and before * renaming `size_type` to `index_type` and introducing a new `size_type = make_unsigned_t` alias. +Since mdspan-0.7.0 the default namespace for `mdspan` is `Kokkos`, in order for this repository not to violate C++ rules. + Using `mdspan` --------------