Store and manage the compatibility mode data associated with a FileHandle.
More...
#include <compat_mode.hpp>
Store and manage the compatibility mode data associated with a FileHandle.
Definition at line 58 of file compat_mode.hpp.
◆ CompatModeManager()
kvikio::CompatModeManager::CompatModeManager |
( |
std::string const & |
file_path, |
|
|
std::string const & |
flags, |
|
|
mode_t |
mode, |
|
|
CompatMode |
compat_mode_requested, |
|
|
FileHandle * |
file_handle |
|
) |
| |
Construct a compatibility mode manager associated with a FileHandle.
According to the file path, requested compatibility mode, and the system configuration, the compatibility manager:
- Infers the final compatibility modes for synchronous and asynchronous I/O paths, respectively.
- Initializes the file wrappers and cuFile handle associated with a FileHandle.
- Parameters
-
◆ compat_mode_requested()
CompatMode kvikio::CompatModeManager::compat_mode_requested |
( |
| ) |
const |
|
noexcept |
Retrieve the original compatibility mode requested.
- Returns
- The original compatibility mode requested.
◆ infer_compat_mode_if_auto()
◆ is_compat_mode_preferred() [1/2]
bool kvikio::CompatModeManager::is_compat_mode_preferred |
( |
| ) |
const |
|
noexcept |
Check if the compatibility mode for synchronous I/O of the associated FileHandle is expected to be CompatMode::ON.
- Returns
- Boolean answer.
◆ is_compat_mode_preferred() [2/2]
bool kvikio::CompatModeManager::is_compat_mode_preferred |
( |
CompatMode |
compat_mode | ) |
|
|
noexcept |
◆ is_compat_mode_preferred_for_async()
bool kvikio::CompatModeManager::is_compat_mode_preferred_for_async |
( |
| ) |
const |
|
noexcept |
Check if the compatibility mode for asynchronous I/O of the associated FileHandle is expected to be CompatMode::ON.
- Returns
- Boolean answer.
◆ validate_compat_mode_for_async()
void kvikio::CompatModeManager::validate_compat_mode_for_async |
( |
| ) |
const |
The documentation for this class was generated from the following file: