Skip to content

Commit

Permalink
Add docs for unmanaged view example
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Oct 1, 2024
1 parent 93d0b77 commit 7b8ad76
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Examples

There are some `examples
<https://github.com/kokkos/kokkos-fft/tree/main/examples>`_ in the
Kokkos-fft repository. Each example includes Kokkos and numpy implementations.
Kokkos-fft repository. Most of the examples include Kokkos and numpy implementations.
For example, `01_1DFFT
<https://github.com/kokkos/kokkos-fft/tree/main/examples/01_1DFFT>`_ includes,

Expand All @@ -32,4 +32,5 @@ Please find the examples from following links.
samples/03_NDFFT.rst
samples/04_batchedFFT.rst
samples/05_1DFFT_HOST_DEVICE.rst
samples/06_1DFFT_reuse_plans.rst
samples/06_1DFFT_reuse_plans.rst
samples/07_unmanaged_views.rst
14 changes: 14 additions & 0 deletions docs/samples/07_unmanaged_views.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.. SPDX-FileCopyrightText: (C) The Kokkos-FFT development team, see COPYRIGHT.md file
..
.. SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
.. _07_unmanaged_views:

Reuse FFT plan
==============

KokkosFFT
---------

.. literalinclude:: ../../examples/07_unmanaged_views/07_unmanaged_views.cpp
:language: C++

0 comments on commit 7b8ad76

Please sign in to comment.