src/components/rocm/linux-rocm.c
// ----------------------------------------------------------------------------
// Callback function to get the number of events we will see;
// Each element of instanced metrics must be created as a separate event
Callback function to get the number of events we will see;
Each element of instanced metrics must be created as a separate event
Callback function to get the number of events we will see ; Each element of instanced metrics must be created as a separate event
static hsa_status_t _rocm_count_native_events_callback(const rocprofiler_info_data_t info, void * arg)
{
    const uint32_t instances = info.metric.instances;
    uint32_t* count = (uint32_t*) arg;
    (*count) += instances;
    return HSA_STATUS_SUCCESS;
}
static hsa_status_t _rocm_count_native_events_callback ( const rocprofiler_info_data_t info , void * arg ) { const uint32_t instances = info . metric . instances ; uint32_t * count = ( uint32_t * ) arg ; ( * count ) += instances ; return HSA_STATUS_SUCCESS ; }
Callback function to get the number of events we will see;
Each element of instanced metrics must be created as a separate event
Callback function to get the number of events we will see ; Each element of instanced metrics must be created as a separate event