|
core 1.5.0
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
|
The payload of a zero-copy capsule: a reference to the exported View, registered as a Releasable so the module's shutdown can drop it before Kokkos::finalize. More...
#include <ndarray_interop.hpp>
Public Member Functions | |
| ViewCapsule (const V &v) | |
| void | release () noexcept override |
Public Member Functions inherited from peclet::core::python::Releasable | |
| Releasable () noexcept | |
| Releasable (const Releasable &) noexcept | |
| Releasable (Releasable &&) noexcept | |
| Releasable & | operator= (const Releasable &) noexcept |
| Releasable & | operator= (Releasable &&) noexcept |
| virtual | ~Releasable () |
Public Attributes | |
| V | view |
Additional Inherited Members | |
Static Public Member Functions inherited from peclet::core::python::Releasable | |
| static std::set< Releasable * > & | registry () |
| This module's live registry. | |
The payload of a zero-copy capsule: a reference to the exported View, registered as a Releasable so the module's shutdown can drop it before Kokkos::finalize.
The capsule deleter (run whenever Python frees the array — possibly after finalize, at interpreter teardown) then only destroys an empty View, which makes no Kokkos call.
Definition at line 77 of file ndarray_interop.hpp.
|
inlineexplicit |
Definition at line 79 of file ndarray_interop.hpp.
|
inlineoverridevirtualnoexcept |
Implements peclet::core::python::Releasable.
Definition at line 80 of file ndarray_interop.hpp.
References peclet::core::python::ViewCapsule< V >::view.
| V peclet::core::python::ViewCapsule< V >::view |
Definition at line 78 of file ndarray_interop.hpp.
Referenced by peclet::core::python::ViewCapsule< V >::release().