-
Notifications
You must be signed in to change notification settings - Fork 15
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
rocAL C++ test suite fix #267
base: develop
Are you sure you want to change the base?
Conversation
fiona-gladwin
commented
Jan 21, 2025
- Fix issues with parsing arguments in C++ tests.
- Fix CMakeLists for basic_tests_gpu to invoke the correct backend.
- Fix issues with loop is set to true in rocAL - add changes for all readers.
- Fix warnings and issues in audio tests, img aug app, dataloader
This reverts commit eecec65.
Add return statement
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.
Nothing to do for docs.
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.
Please address the review comments
@@ -41,6 +41,8 @@ Caffe2LMDBRecordReader::Caffe2LMDBRecordReader() { | |||
|
|||
unsigned Caffe2LMDBRecordReader::count_items() { |
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.
if count_items is a common function in all readers, please move it to base class
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.
The variable like _read_counter is private to the Caffe2 reader class, and not common in the Reader class
Should we move that to common as well?
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.
I see that the read_counter is common in all the readers same as count_items(). Please move both to base class and remove redefinitions in all the derived classes
_processing = false; | ||
_ring_buffer.release_all_blocked_calls(); | ||
release(); | ||
THROW("Exception thrown in the process routine: " + STR(e.what()) + STR("\n")); |
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.
Instead of raising exception here, in the run function, we need to check if the processing was succes or not. Then return appropriate error code from there.