Class that provides RAII for the cuFile handle.
More...
#include <file_utils.hpp>
Class that provides RAII for the cuFile handle.
Definition at line 86 of file file_utils.hpp.
◆ handle()
CUfileHandle_t kvikio::CUFileHandleWrapper::handle |
( |
| ) |
const |
|
noexcept |
Return the cuFile handle.
- Returns
- The cuFile handle.
◆ register_handle()
std::optional<CUfileError_t> kvikio::CUFileHandleWrapper::register_handle |
( |
int |
fd | ) |
|
|
noexcept |
Register the file handle given the file descriptor.
- Parameters
-
- Returns
- Return the cuFile error code from handle register. If the handle has already been registered by calling
register_handle()
, return std::nullopt
.
◆ registered()
bool kvikio::CUFileHandleWrapper::registered |
( |
| ) |
const |
|
noexcept |
Check if the handle has been registered.
- Returns
- A boolean answer indicating if the handle has been registered.
The documentation for this class was generated from the following file: