Added kernel id to enqueue callback for kernel dispatch (#276)

Adds kernel id as parameter to rocprofiler_profile_counting_dispatch_callback_t.
Small cleanup of code in core.cpp.
このコミットが含まれているのは:
Benjamin Welton
2023-12-11 09:13:48 -08:00
committed by GitHub
コミット d2a6eec1bf
6個のファイルの変更12行の追加4行の削除
+2
ファイルの表示
@@ -48,6 +48,7 @@ ROCPROFILER_EXTERN_C_INIT
* @param [in] agent Agent of this queue
* @param [in] correlation_id Correlation ID for this dispatch
* @param [in] dispatch_packet Kernel dispatch packet about to be enqueued into HSA
* @param [in] kernel_id Kernel identifier
* @param [in] callback_data_args Callback supplied via buffered_dispatch_profile_counting_service
* @param [out] config Profile config detailing the counters to collect for this kernel
*/
@@ -56,6 +57,7 @@ typedef void (*rocprofiler_profile_counting_dispatch_callback_t)(
const rocprofiler_agent_t* agent,
rocprofiler_correlation_id_t correlation_id,
const hsa_kernel_dispatch_packet_t* dispatch_packet,
uint64_t kernel_id,
void* callback_data_args,
rocprofiler_profile_config_id_t* config);