-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Memory map the input file only when GDS compatiblity mode is not used (…
…#7717) `mmap` is expensive on some systems and we can expect better performance with file reads when GDS is used, especially with compatibility mode. This PR adds a source type that does not use `mmap` for host reads. This type is used when GDS and its compatibility mode are enabled. `file_source` is now a base class for file-based input and only implements the device_read functions. `memory_mapped_source` class implements the host reads through the memory mapped file. `direct_read_source` is a newly implemented class that uses read for host reads, no `mmap`. Selection is done in `datasource::create` based on `cufile_config`. Authors: - Vukasin Milovanovic (@vuule) Approvers: - Devavret Makkar (@devavret) - David (@davidwendt) URL: #7717
- Loading branch information
Showing
4 changed files
with
174 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.