Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 1.34 KB

README.md

File metadata and controls

25 lines (15 loc) · 1.34 KB

mdspan_testing

A small test project to explore the std::mdspan C++ library feature coming up with C++23.

notes

As there is no std::mdspan implementation available in the major std library implementations at the time of this writing, this project uses the kokkos mdspan reference implementation.

implemented examples

1. image_ops (src/image_ops)

Reads in a gray scale image, applies a box filter and writes the filtered image to disk.

mdspan is hereby being used to access the individual pixels of an image. Different layout_policies are being used to control the behavior of the filter near the borders transparently (clamp, wrap around or reflect).

2. mmap_accessor (src/mmap_accessor)

Writes a 2d mdspan to a file on disk and creates a mdspan instance backed by a memory mapped variant of the previously written file.

Acknowledgements