12 #include <kvikio/error.hpp>
13 #include <kvikio/file_handle.hpp>
14 #include <kvikio/shim/cufile.hpp>
33 CUfileOpcode_t opcode;
51 bool _initialized{
false};
52 int _max_num_events{};
53 CUfileBatchHandle_t _handle{};
73 [[nodiscard]]
bool closed() const noexcept;
98 std::vector<CUfileIOEvents_t>
status(
unsigned min_nr,
100 struct timespec* timeout =
nullptr);
Handle of an cuFile batch using semantic.
BatchHandle(int max_num_events)
Construct a batch handle.
void submit(std::vector< BatchOp > const &operations)
Submit a vector of batch operations.
BatchHandle(BatchHandle const &)=delete
BatchHandle support move semantic but isn't copyable.
void close() noexcept
Destroy the batch handle and free up resources.
std::vector< CUfileIOEvents_t > status(unsigned min_nr, unsigned max_nr, struct timespec *timeout=nullptr)
Get status of submitted operations.
Handle of an open file registered with cufile.
IO operation used when submitting batches.