|
cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
|
A smart-pointer-like class for memory obtained via inter-process communication. More...
#include <ipc.hpp>
Public Member Functions | |
| imported_ptr_t (const imported_ptr_t &other)=delete | |
| imported_ptr_t & | operator= (const imported_ptr_t &other)=delete |
| imported_ptr_t & | operator= (imported_ptr_t &&other) noexcept |
| imported_ptr_t (imported_ptr_t &&other) noexcept=default | |
| template<typename T = void> | |
| T * | get () const noexcept |
| bool | is_owning () const noexcept |
Friends | |
| imported_ptr_t | wrap (void *ptr, bool owning) noexcept |
| Construct an instance of our wrapper class for IPC-imported memory from a raw pointer to the mapping. | |
A smart-pointer-like class for memory obtained via inter-process communication.
This RAII wrapper class maps memory in the current process' address space on construction, and unmaps it on destruction, using a CUDA IPC handle.
| the | element type in the stretch of IPC-shared memory |
|
inlinenoexcept |
|
inlinenoexcept |