All Classes Namespaces Functions Enumerations Enumerator Modules Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
kvikio::cuFileAPI Class Reference

Shim layer of the cuFile C-API. More...

#include <cufile.hpp>

Public Member Functions

 cuFileAPI (cuFileAPI const &)=delete
 
void operator= (cuFileAPI const &)=delete
 
 cuFileAPI (cuFileAPI const &&)=delete
 
void operator= (cuFileAPI const &&)=delete
 
void driver_open ()
 Open the cuFile driver. More...
 
void driver_close ()
 Close the cuFile driver.
 

Static Public Member Functions

static KVIKIO_EXPORT cuFileAPIinstance ()
 

Public Attributes

decltype(cuFileHandleRegister) * HandleRegister {nullptr}
 
decltype(cuFileHandleDeregister) * HandleDeregister {nullptr}
 
decltype(cuFileRead) * Read {nullptr}
 
decltype(cuFileWrite) * Write {nullptr}
 
decltype(cuFileBufRegister) * BufRegister {nullptr}
 
decltype(cuFileBufDeregister) * BufDeregister {nullptr}
 
decltype(cuFileDriverGetProperties) * DriverGetProperties {nullptr}
 
decltype(cuFileDriverSetPollMode) * DriverSetPollMode {nullptr}
 
decltype(cuFileDriverSetMaxCacheSize) * DriverSetMaxCacheSize {nullptr}
 
decltype(cuFileDriverSetMaxPinnedMemSize) * DriverSetMaxPinnedMemSize {nullptr}
 
decltype(cuFileBatchIOSetUp) * BatchIOSetUp {nullptr}
 
decltype(cuFileBatchIOSubmit) * BatchIOSubmit {nullptr}
 
decltype(cuFileBatchIOGetStatus) * BatchIOGetStatus {nullptr}
 
decltype(cuFileBatchIOCancel) * BatchIOCancel {nullptr}
 
decltype(cuFileBatchIODestroy) * BatchIODestroy {nullptr}
 
decltype(cuFileReadAsync) * ReadAsync {nullptr}
 
decltype(cuFileWriteAsync) * WriteAsync {nullptr}
 
decltype(cuFileStreamRegister) * StreamRegister {nullptr}
 
decltype(cuFileStreamDeregister) * StreamDeregister {nullptr}
 
int version {0}
 

Detailed Description

Shim layer of the cuFile C-API.

This is a singleton class that use dlopen on construction to load the C-API of cuFile.

For example, cuFileAPI::instance().FileRead() corresponds to calling cuFileRead()

Definition at line 30 of file cufile.hpp.

Member Function Documentation

◆ driver_open()

void kvikio::cuFileAPI::driver_open ( )

Open the cuFile driver.

cuFile allows multiple calls to cufileDriverOpen(), only the first call opens the driver, but every call should have a matching call to cufileDriverClose().


The documentation for this class was generated from the following file: