Skip to content

Commit

Permalink
Fix rocal unit test build
Browse files Browse the repository at this point in the history
  • Loading branch information
fiona-gladwin committed May 5, 2023
1 parent 8a681f9 commit 823c604
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/rocAL/rocAL_unittests/rocAL_unittests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -815,9 +815,9 @@ int test(int test_case, int reader_type, const char *path, const char *outName,
case 1: //classification pipeline
{
if (gpu == 1)
rocalGetImageLabels(handle, label_id, ROCAL_MEMCPY_TO_HOST);
rocalGetImageLabels(handle, label_id, ROCAL_MEMCPY_HOST);
else
rocalGetImageLabels(handle, label_id);
rocalGetImageLabels(handle, label_id, ROCAL_MEMCPY_HOST);
int img_size = rocalGetImageNameLen(handle, image_name_length);
char img_name[img_size];
numOfClasses = num_of_classes;
Expand Down

0 comments on commit 823c604

Please sign in to comment.