Skip to content

Commit

Permalink
Fix build warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
shobana-mcw committed Jun 2, 2021
1 parent cb208f5 commit b063ca6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rocAL/rocAL/include/master_graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ class MasterGraph
static size_t compute_optimum_internal_batch_size(size_t user_batch_size, RaliAffinity affinity);
const size_t _internal_batch_size;//!< In the host processing case , internal batch size can be different than _user_batch_size. This batch size used internally throughout.
const size_t _user_to_internal_batch_ratio;
size_t _prefetch_queue_depth;
bool _output_routine_finished_processing = false;
const RaliTensorDataType _out_data_type;
bool _is_random_bbox_crop = false;
size_t _prefetch_queue_depth;
};

template <typename T>
Expand Down
3 changes: 2 additions & 1 deletion rocAL/rocAL/source/circular_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ void CircularBuffer::init(RaliMemType output_mem_type, size_t output_mem_size, s
THROW("hipHostMalloc of size " + TOSTR(_output_mem_size) + " failed " + TOSTR(err));
}
if (_dev_prop->canMapHostMemory) {
if (err = hipHostGetDevicePointer((void **)&_dev_buffer[buffIdx], _host_buffer_ptrs[buffIdx], 0 ))
err = hipHostGetDevicePointer((void **)&_dev_buffer[buffIdx], _host_buffer_ptrs[buffIdx], 0 );
if (err != hipSuccess)
{
THROW("hipHostGetDevicePointer of size " + TOSTR(_output_mem_size) + " failed " + TOSTR(err));
}
Expand Down

0 comments on commit b063ca6

Please sign in to comment.