uproot.source.cufile_interface.CuFileSource
Defined in uproot.source.cufile_interface on line 6.
- class uproot.source.cufile_interface.CuFileSource(file_path, method)
Class for physically reading and writing data from a file using kvikio bindings to CuFile API.
- Parameters:
filepath (str) – Path fo file.
method (str) – Method to open file with. e.g. “w”, “r”
Provides a consistent interface to kvikio cufile API. Stores metadata of read requests.
close
- CuFileSource.close()
pread
- CuFileSource.pread(buffer, size: int | None = None, file_offset: int = 0, task_size: int | None = None)
get_all
- CuFileSource.get_all()
Wait for all futures in self._futures to finish.
futures
- CuFileSource.futures
List of kvikio.IOFutures corresponding to all pread() calls
file_path
- CuFileSource.file_path
A path to the file (or URL).
num_requested_chunks
- CuFileSource.num_requested_chunks
The number of requests that have been made (performance counter).
num_requested_bytes
- CuFileSource.num_requested_bytes
The number of bytes that have been requested (performance counter).
requested_chunk_sizes
- CuFileSource.requested_chunk_sizes
The size of requests that have been made in number of bytes (performance counter).