From 7b8ad7680cac96401eead1a01a80aec57fd982b8 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Tue, 1 Oct 2024 19:27:37 +0900 Subject: [PATCH] Add docs for unmanaged view example --- docs/examples.rst | 5 +++-- docs/samples/07_unmanaged_views.rst | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 docs/samples/07_unmanaged_views.rst diff --git a/docs/examples.rst b/docs/examples.rst index 21ca75bb..f6cc304d 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -9,7 +9,7 @@ Examples There are some `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 `_ includes, @@ -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 \ No newline at end of file + samples/06_1DFFT_reuse_plans.rst + samples/07_unmanaged_views.rst \ No newline at end of file diff --git a/docs/samples/07_unmanaged_views.rst b/docs/samples/07_unmanaged_views.rst new file mode 100644 index 00000000..09db80fd --- /dev/null +++ b/docs/samples/07_unmanaged_views.rst @@ -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++