rocprofiler-sdk/dispatch_profile.h File Reference#
Rocprofiler SDK Developer API 0.4.0
ROCm Profiling API and tools
|
dispatch_profile.h File Reference
#include <rocprofiler-sdk/agent.h>
#include <rocprofiler-sdk/defines.h>
#include <rocprofiler-sdk/fwd.h>
#include <rocprofiler-sdk/hsa.h>
#include <rocprofiler-sdk/profile_config.h>
Include dependency graph for dispatch_profile.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | rocprofiler_profile_counting_dispatch_data_t |
Kernel dispatch data for profile counting callbacks. More... | |
struct | rocprofiler_profile_counting_dispatch_record_t |
ROCProfiler Profile Counting Counter Record Header Information. More... | |
Typedefs | |
typedef void(* | rocprofiler_profile_counting_dispatch_callback_t) (rocprofiler_profile_counting_dispatch_data_t dispatch_data, rocprofiler_profile_config_id_t *config, rocprofiler_user_data_t *user_data, void *callback_data_args) |
Kernel Dispatch Callback. This is a callback that is invoked before the kernel is enqueued into the HSA queue. What counters to collect for a kernel are set via passing back a profile config (config) in this callback. These counters will be collected and emplaced in the buffer with rocprofiler_buffer_id_t used when setting up this callback. | |
typedef void(* | rocprofiler_profile_counting_record_callback_t) (rocprofiler_profile_counting_dispatch_data_t dispatch_data, rocprofiler_record_counter_t *record_data, unsigned long record_count, rocprofiler_user_data_t user_data, void *callback_data_args) |
Counting record callback. This is a callback is invoked when the kernel execution is complete and contains the counter profile data requested in rocprofiler_profile_counting_dispatch_callback_t. Only used with rocprofiler_configure_callback_dispatch_profile_counting_service. | |
Functions | |
rocprofiler_status_t | rocprofiler_configure_buffered_dispatch_profile_counting_service (rocprofiler_context_id_t context_id, rocprofiler_buffer_id_t buffer_id, rocprofiler_profile_counting_dispatch_callback_t callback, void *callback_data_args) |
Configure buffered dispatch profile Counting Service. Collects the counters in dispatch packets and stores them in a buffer with buffer_id . The buffer may contain packets from more than one dispatch (denoted by correlation id). Will trigger the callback based on the parameters setup in buffer_id_t. | |
rocprofiler_status_t | rocprofiler_configure_callback_dispatch_profile_counting_service (rocprofiler_context_id_t context_id, rocprofiler_profile_counting_dispatch_callback_t dispatch_callback, void *dispatch_callback_args, rocprofiler_profile_counting_record_callback_t record_callback, void *record_callback_args) |
Configure buffered dispatch profile Counting Service. Collects the counters in dispatch packets and calls a callback with the counters collected during that dispatch. | |
Generated by 1.9.8