[SWDEV-509876] Remove buffer requirement from device counting service (#132)
* [SWDEV-509876] Remove buffer requirement from device counting service No longer require a buffer to be given when setting up device counting service. This is to reduce performance overhead in cases where immediate return of counting samples is being used (synchronous mode). * Missed file * Update source/include/rocprofiler-sdk/device_counting_service.h Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Update source/lib/rocprofiler-sdk/counters/controller.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Update source/lib/rocprofiler-sdk/counters/device_counting.cpp Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> * Fixes for build --------- Co-authored-by: Benjamin Welton <ben@amd.com> Co-authored-by: Madsen, Jonathan <Jonathan.Madsen@amd.com> Co-authored-by: Benjamin Welton <bewelton@amd.com>
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
d4a51e4102
commit
0c4a56c6bb
@@ -82,7 +82,8 @@ CounterController::configure_agent_collection(rocprofiler_context_id_t context_i
|
||||
// cannot coexist in the same context for now.
|
||||
if(ctx.pc_sampler) return ROCPROFILER_STATUS_ERROR_CONTEXT_CONFLICT;
|
||||
|
||||
if(!rocprofiler::buffer::get_buffer(buffer_id.handle))
|
||||
if(!rocprofiler::buffer::get_buffer(buffer_id) &&
|
||||
buffer_id != rocprofiler_buffer_id_t{.handle = 0})
|
||||
{
|
||||
return ROCPROFILER_STATUS_ERROR_BUFFER_NOT_FOUND;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user