You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constructor of FileHandle may create the following resources:
File resource created by the system call open without the O_DIRECT flag.
File resource created by the system call open with the O_DIRECT flag.
There are two possibilities where the constructor may throw exceptions and cause trouble:
The compatibility mode is set to OFF but the file cannot be opened with the O_DIRECT flag.
The compatibility mode is set to OFF but the cuFileHandleRegister fails, for instance, due to unsupported or misconfigured system for cuFile I/O.
When the constructor throws, the destructor will not be called, resulting in resource leak. This issue can be fixed by using an RAII file resource manager.
The text was updated successfully, but these errors were encountered:
The constructor of
FileHandle
may create the following resources:open
without theO_DIRECT
flag.open
with theO_DIRECT
flag.There are two possibilities where the constructor may throw exceptions and cause trouble:
OFF
but the file cannot be opened with theO_DIRECT
flag.OFF
but thecuFileHandleRegister
fails, for instance, due to unsupported or misconfigured system for cuFile I/O.When the constructor throws, the destructor will not be called, resulting in resource leak. This issue can be fixed by using an RAII file resource manager.
The text was updated successfully, but these errors were encountered: