Skip to content

Commit

Permalink
Added link to cppreference for RAII
Browse files Browse the repository at this point in the history
Co-authored-by: Damien L-G <[email protected]>
  • Loading branch information
JBludau and dalg24 committed Sep 1, 2024
1 parent 571fdae commit 6b5b3ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/API/core/initialize_finalize/ScopeGuard.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Usage
.set_num_threads(1));
``ScopeGuard`` is a class to initialize and finalize Kokkos using RAII.
``ScopeGuard`` is a class to initialize and finalize Kokkos using `RAII <https://en.cppreference.com/w/cpp/language/raii>`_.
It calls `Kokkos::initialize <initialize.html#kokkosinitialize>`_ with the provided arguments in the
constructor and `Kokkos::finalize <finalize.html#kokkosfinalize>`_ in the destructor.
For correct usage, it is mandatory to create a named instance of a ``ScopeGuard`` before any calls to Kokkos are issued.
Expand Down

0 comments on commit 6b5b3ee

Please sign in to comment.