Skip to content
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

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from

Conversation

fiona-gladwin
Copy link
Contributor

  • 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

Copy link
Contributor

@spolifroni-amd spolifroni-amd left a 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.

Copy link
Contributor

@rrawther rrawther left a 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() {
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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"));
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants