-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add O_DIRECT support to the TFRecord reader #4820
Conversation
!build |
CI MESSAGE: [8147944]: BUILD STARTED |
CI MESSAGE: [8147944]: BUILD PASSED |
!build |
CI MESSAGE: [8149814]: BUILD STARTED |
!build |
CI MESSAGE: [8150431]: BUILD STARTED |
CI MESSAGE: [8150431]: BUILD FAILED |
!build |
CI MESSAGE: [8174852]: BUILD STARTED |
CI MESSAGE: [8174852]: BUILD FAILED |
!build |
CI MESSAGE: [8178581]: BUILD STARTED |
CI MESSAGE: [8178581]: BUILD FAILED |
CI MESSAGE: [8178581]: BUILD PASSED |
CI MESSAGE: [8224536]: BUILD STARTED |
CI MESSAGE: [8224536]: BUILD FAILED |
7bf4fcf
to
c1096c4
Compare
!build |
CI MESSAGE: [8303761]: BUILD STARTED |
CI MESSAGE: [8303761]: BUILD FAILED |
59141a2
to
d1548c9
Compare
!build |
CI MESSAGE: [8303921]: BUILD STARTED |
CI MESSAGE: [8303921]: BUILD FAILED |
d1548c9
to
aa4780f
Compare
CI MESSAGE: [8304874]: BUILD STARTED |
CI MESSAGE: [8304874]: BUILD PASSED |
!build |
CI MESSAGE: [8309115]: BUILD STARTED |
4a0bd07
to
8ae5221
Compare
!build |
CI MESSAGE: [8542796]: BUILD STARTED |
CI MESSAGE: [8542796]: BUILD PASSED |
DALI_STRING_VEC); | ||
DALI_STRING_VEC) | ||
.AddOptionalArg("use_o_direct", | ||
R"code(If set to True, the data will be read directly from the storage bypassing system |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R"code(If set to True, the data will be read directly from the storage bypassing system | |
R"code(If set to True, the data will be read directly from the storage bypassing the system |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
* ----------------XXXX************XXXXXXXXXXXXXXXXXXX---------------- | ||
*/ | ||
// read again if there is no buffer of the requested piece if outside of the it | ||
if (!read_buffer_ || !(seek_pos >= static_cast<int64>(read_buffer_pos_) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick. The content of this if statement is a bit too complex. Can we make some bool variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
}; | ||
// store the work lambda into queue so the prefetch thread can pick them up latter and | ||
// execute in multiple threads | ||
PutReadWork(work); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PutReadWork(work); | |
PutReadWork(std::move(work)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
- adds the `use_o_direct` option to the TFRecord reader. In effect the reader reads to the internal buffer which chunks are shared with samples. When the buffer runs out of content new one is allocated and the old lives as long as any sample still uses a piece of it Signed-off-by: Janusz Lisiecki <[email protected]>
Signed-off-by: Janusz Lisiecki <[email protected]>
Signed-off-by: Janusz Lisiecki <[email protected]>
8ae5221
to
49e36ed
Compare
Signed-off-by: Janusz Lisiecki <[email protected]>
!build |
CI MESSAGE: [8545041]: BUILD STARTED |
CI MESSAGE: [8545041]: BUILD FAILED |
CI MESSAGE: [8545041]: BUILD PASSED |
- adds the `use_o_direct` option to the TFRecord reader. In effect the reader reads to the internal buffer which chunks are shared with samples. When the buffer runs out of content new one is allocated and the old lives as long as any sample still uses a piece of it Signed-off-by: Janusz Lisiecki <[email protected]>
- adds the `use_o_direct` option to the TFRecord reader. In effect the reader reads to the internal buffer which chunks are shared with samples. When the buffer runs out of content new one is allocated and the old lives as long as any sample still uses a piece of it Signed-off-by: Janusz Lisiecki <[email protected]>
use_o_direct
option to the TFRecord reader. In effectthe reader reads to the internal buffer which chunks are shared
with samples. When the buffer runs out of content new one
is allocated and the old lives as long as any sample still
uses a piece of it
Category:
New feature (non-breaking change which adds functionality)
Description:
use_o_direct
option to the TFRecord reader. In effectthe reader reads to the internal buffer which chunks are shared
with samples. When the buffer runs out of content new one
is allocated and the old lives as long as any sample still
uses a piece of it
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: DALI-3404