cuFile C-API 的 Shim 层。 更多...
#include <cufile.hpp>
公有成员函数 | |
| cuFileAPI (cuFileAPI const &)=delete | |
| void | operator= (cuFileAPI const &)=delete |
| cuFileAPI (cuFileAPI const &&)=delete | |
| void | operator= (cuFileAPI const &&)=delete |
| void | driver_open () |
| 打开 cuFile 驱动。 更多... | |
| void | driver_close () |
| 关闭 cuFile 驱动。 | |
静态公有成员函数 | |
| static KVIKIO_EXPORT cuFileAPI & | instance () |
cuFile C-API 的 Shim 层。
这是一个单例类,在构造时使用 dlopen 加载 cuFile 的 C-API。
例如,cuFileAPI::instance().FileRead() 对应于调用 cuFileRead()
定义于文件 cufile.hpp 的第 30 行。
| void kvikio::cuFileAPI::driver_open | ( | ) |
打开 cuFile 驱动。
cuFile 允许多次调用 cufileDriverOpen(),但只有第一次调用会打开驱动;每次调用都应有相应的 cufileDriverClose() 调用相匹配。