All Projects → kokkos → Mdspan

kokkos / Mdspan

Licence: other
Production-quality reference implementation of mdspan

Labels

Projects that are alternatives of or similar to Mdspan

Progress Cpp
A flexible ASCII progress-bar for C++
Stars: ✭ 81 (-18.18%)
Mutual labels:  cmake
Kinectazuredkprogramming
Samples about Kinect Azure DK programming
Stars: ✭ 92 (-7.07%)
Mutual labels:  cmake
Gr Tutorial
A tutorial OOT module for GNU Radio
Stars: ✭ 96 (-3.03%)
Mutual labels:  cmake
Gr Nordic
GNU Radio module and Wireshark dissector for the Nordic Semiconductor nRF24L Enhanced Shockburst protocol.
Stars: ✭ 84 (-15.15%)
Mutual labels:  cmake
Raspi Toolchain
Stars: ✭ 90 (-9.09%)
Mutual labels:  cmake
Dcmjs
dcmjs is a javascript cross-compile of dcmtk (dcmtk.org).
Stars: ✭ 92 (-7.07%)
Mutual labels:  cmake
Gr Elster
A GNU Radio block that decodes packets transmitted by Elster R2S smart meters
Stars: ✭ 78 (-21.21%)
Mutual labels:  cmake
Cmake fortran template
A template directory structure for a Fortran project using CMake as the build system.
Stars: ✭ 97 (-2.02%)
Mutual labels:  cmake
Hatchit
A Free and Open Source 3D Game Engine written in C++
Stars: ✭ 91 (-8.08%)
Mutual labels:  cmake
Examples
VLC-Qt Examples
Stars: ✭ 96 (-3.03%)
Mutual labels:  cmake
Mingw W64 Cmake
CMake-based MinGW-w64 Cross Toolchain
Stars: ✭ 84 (-15.15%)
Mutual labels:  cmake
Novuscore
A modern take on WoW emulation
Stars: ✭ 88 (-11.11%)
Mutual labels:  cmake
Kindd
A kindful dd, written in qt-quick.
Stars: ✭ 93 (-6.06%)
Mutual labels:  cmake
Torchlambda
Lightweight tool to deploy PyTorch models to AWS Lambda
Stars: ✭ 83 (-16.16%)
Mutual labels:  cmake
Avp Slam Sim
A basic implementation(not official code) of AVP-SLAM(IROS 2020) in simulation. https://arxiv.org/abs/2007.01813
Stars: ✭ 97 (-2.02%)
Mutual labels:  cmake
Llvm Amdgpu Assembler Extra
LLVM AMDGPU Assembler Helper Tools
Stars: ✭ 80 (-19.19%)
Mutual labels:  cmake
Webdav Client Cpp
☁️ C++ WebDAV Client provides easy and convenient to work with WebDAV-servers.
Stars: ✭ 92 (-7.07%)
Mutual labels:  cmake
Cgcmake
CMake modules for common applications related to computer graphics
Stars: ✭ 98 (-1.01%)
Mutual labels:  cmake
Cqxq
让XQ支持CQ插件
Stars: ✭ 97 (-2.02%)
Mutual labels:  cmake
Rustcmake
An example project showing usage of CMake with Rust
Stars: ✭ 94 (-5.05%)
Mutual labels:  cmake

Production-quality mdspan implementation

The ISO-C++ proposal 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 :-)

Using mdspan

A tutorial-style introduction to the basic usage of mdspan is provided on the project wiki. More advanced tutorials to come.

Features

  • C++17 backport (e.g., concepts not required)
  • C++14 backport (e.g., fold expressions not required)
    • Compile times of this backport will be substantially slower than the C++17 version
  • C++11 backport
    • Compile times of this backport will be substantially slower than the C++14 backport
  • Macros to enable, e.g., __device__ marking of all functions for CUDA compatibility

Building and Installation

This implementation is header-only, with compiler features detected using feature test macros, so you can just use it directly with no building or installation. If you would like to run the included tests or benchmarks, you'll need CMake.

TODO finish this

Running tests

TODO write this

Running benchmarks

TODO write this

Caveats

This implementation is fully conforming with a few exceptions (most of which are extensions):

  • layout_stride is a template that takes static strides (which can be std::experimental::dynamic_extent), which enables zero-overhead subspan implementation
  • zero-sized strides are allowed for layout_stride mappings
  • the layout_stride mapping comparison operators work as expected, rather than the (typo) specification in the proposal
  • the span() method on basic_mdspan is omitted for several reasons

Acknowledgements

This work was undertaken as part of the Kokkos project at Sandia National Laboratories. Sandia National Laboratories is a multimission laboratory managed and operated by National Technology & Engineering Solutions of Sandia, LLC, a wholly owned subsidary of Honeywell International Inc., for the U. S. Department of Energy's National Nuclear Security Administration under contract DE-NA0003525.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].