rocprofiler_kernel_dispatch_info_t + header record for buffered counter collection (#758)
* Update include/rocprofiler-sdk
- defines.h
- ROCPROFILER_VERSION_10_0 -> ROCPROFILER_SDK_VERSION_0_0
- fwd.h
- rocprofiler_counter_record_kind_t
- rocprofiler_kernel_dispatch_info_t
- rocprofiler_record_counter_t
- has dispatch id instead of correlation id
- rocprofiler_counter_info_v0_t
- added rocprofiler_counter_id_t field
- added is_constant field
- reordered better packing
- dispatch_profile.h
- added rocprofiler_profile_counting_dispatch_record_t for use as a header record for rocprofiler_profile_counting_dispatch_data_t
- callback_tracing.h
- rocprofiler_callback_tracing_kernel_dispatch_data_t uses rocprofiler_kernel_dispatch_info_t
- buffer_tracing.h
- rocprofiler_buffer_tracing_kernel_dispatch_record_t uses rocprofiler_kernel_dispatch_info_t
* Update lib/rocprofiler-sdk/*
- transition to rocprofiler_kernel_dispatch_info_t
- set id and is_constant values for rocprofiler_counter_info_v0_t in rocprofiler_query_counter_info
* Update lib/rocprofiler-sdk-tool
- transition to rocprofiler_kernel_dispatch_info_t
* Update lib/rocprofiler-sdk/counters/tests/core.cpp
- transition to rocprofiler_kernel_dispatch_info_t
* Update samples
- transition to rocprofiler_kernel_dispatch_info_t
- transition to rocprofiler_counter_record_kind_t
* Update tests
- transition to rocprofiler_kernel_dispatch_info_t
- transition to rocprofiler_counter_record_kind_t
- improve integration test validation for counter-collection
- update serialization for new/additional types
* Fix tests/counter-collection/validate.py
- loosen restrictions on the length of counter description
* Update include/rocprofiler-sdk/buffer_tracing.h
- remove accidental packed attribute
* Update lib/rocprofiler-sdk/counters/xml/derived_counters.xml
- Add description for TCC_TAG_STALL_sum (reference: https://rocm.docs.amd.com/en/develop/conceptual/gpu-arch/mi300-mi200-performance-counters.html)
* Update tests/page-migration/validate.py
[ROCm/rocprofiler-sdk commit: 07537b6231]
This commit is contained in:
committed by
GitHub
parent
4f99edbad5
commit
2aef3c3d15
@@ -66,9 +66,9 @@ dispatch_complete(queue_info_session_t& session)
|
||||
// only do the following work if there are contexts that require this info
|
||||
auto& callback_record = session.callback_record;
|
||||
const auto& _extern_corr_ids = session.tracing_data.external_correlation_ids;
|
||||
const auto* _rocp_agent = agent::get_agent(callback_record.agent_id);
|
||||
const auto* _rocp_agent = agent::get_agent(callback_record.dispatch_info.agent_id);
|
||||
auto _hsa_agent = agent::get_hsa_agent(_rocp_agent);
|
||||
auto _kern_id = callback_record.kernel_id;
|
||||
auto _kern_id = callback_record.dispatch_info.kernel_id;
|
||||
auto _signal = session.kernel_pkt.kernel_dispatch.completion_signal;
|
||||
auto _tid = session.tid;
|
||||
|
||||
@@ -122,14 +122,7 @@ dispatch_complete(queue_info_session_t& session)
|
||||
_tid,
|
||||
callback_record.start_timestamp,
|
||||
callback_record.end_timestamp,
|
||||
callback_record.agent_id,
|
||||
callback_record.queue_id,
|
||||
callback_record.kernel_id,
|
||||
callback_record.dispatch_id,
|
||||
callback_record.private_segment_size,
|
||||
callback_record.group_segment_size,
|
||||
callback_record.workgroup_size,
|
||||
callback_record.grid_size};
|
||||
callback_record.dispatch_info};
|
||||
|
||||
tracing::execute_buffer_record_emplace(tracing_data_v.buffered_contexts,
|
||||
_tid,
|
||||
|
||||
Reference in New Issue
Block a user