Renamed agent profiling service to device counting service (#1132)
* Renamed agent profiling service to device counting service
Name more aptly represents what agent profiling did (device wide
counter collection). Conversion of existing user code can be
performed by the following find/sed command:
find . -type f -exec sed -i 's/rocprofiler_agent_profile_callback_t/rocprofiler_device_counting_service_callback_t/g; s/rocprofiler_configure_agent_profile_counting_service/rocprofiler_configure_device_counting_service/g; s/agent_profile.h/device_counting_service.h/g; s/rocprofiler_sample_agent_profile_counting_service/rocprofiler_sample_device_counting_service/g' {} +
* Converted dispatch profile to dispatch counting service
* Debug for functioal counters test
* Minor changes for CI
* Minor fix
* More fixes for CI
* Update evaluate_ast.cpp
---------
Co-authored-by: Benjamin Welton <ben@amd.com>
Bu işleme şunda yer alıyor:
işlemeyi yapan:
GitHub
ebeveyn
320427b5f5
işleme
bb69467765
@@ -33,7 +33,7 @@
|
||||
#include "lib/rocprofiler-sdk/kernel_dispatch/profiling_time.hpp"
|
||||
#include "lib/rocprofiler-sdk/registration.hpp"
|
||||
|
||||
#include <rocprofiler-sdk/dispatch_profile.h>
|
||||
#include <rocprofiler-sdk/dispatch_counting_service.h>
|
||||
#include <rocprofiler-sdk/fwd.h>
|
||||
#include <rocprofiler-sdk/registration.h>
|
||||
#include <rocprofiler-sdk/rocprofiler.h>
|
||||
@@ -165,7 +165,7 @@ buffered_callback(rocprofiler_context_id_t,
|
||||
}
|
||||
|
||||
void
|
||||
null_dispatch_callback(rocprofiler_profile_counting_dispatch_data_t,
|
||||
null_dispatch_callback(rocprofiler_dispatch_counting_service_data_t,
|
||||
rocprofiler_profile_config_id_t*,
|
||||
rocprofiler_user_data_t*,
|
||||
void*)
|
||||
@@ -181,7 +181,7 @@ null_buffered_callback(rocprofiler_context_id_t,
|
||||
{}
|
||||
|
||||
void
|
||||
null_record_callback(rocprofiler_profile_counting_dispatch_data_t,
|
||||
null_record_callback(rocprofiler_dispatch_counting_service_data_t,
|
||||
rocprofiler_record_counter_t*,
|
||||
size_t,
|
||||
rocprofiler_user_data_t,
|
||||
@@ -207,7 +207,7 @@ TEST(core, check_packet_generation)
|
||||
/**
|
||||
* Check profile construction
|
||||
*/
|
||||
rocprofiler_profile_config_id_t cfg_id = {};
|
||||
rocprofiler_profile_config_id_t cfg_id = {.handle = 0};
|
||||
rocprofiler_counter_id_t id = {.handle = metric.id()};
|
||||
ROCP_ERROR << fmt::format("Generating packet for {}", metric);
|
||||
ROCPROFILER_CALL(
|
||||
@@ -301,7 +301,7 @@ namespace
|
||||
struct expected_dispatch
|
||||
{
|
||||
// To pass back
|
||||
rocprofiler_profile_config_id_t id = {};
|
||||
rocprofiler_profile_config_id_t id = {.handle = 0};
|
||||
rocprofiler_queue_id_t queue_id = {.handle = 0};
|
||||
rocprofiler_agent_id_t agent_id = {.handle = 0};
|
||||
uint64_t kernel_id = 0;
|
||||
@@ -313,7 +313,7 @@ struct expected_dispatch
|
||||
};
|
||||
|
||||
void
|
||||
user_dispatch_cb(rocprofiler_profile_counting_dispatch_data_t dispatch_data,
|
||||
user_dispatch_cb(rocprofiler_dispatch_counting_service_data_t dispatch_data,
|
||||
rocprofiler_profile_config_id_t* config,
|
||||
rocprofiler_user_data_t* user_data,
|
||||
void* callback_data_args)
|
||||
@@ -326,7 +326,7 @@ user_dispatch_cb(rocprofiler_profile_counting_dispatch_data_t dispatch_data,
|
||||
auto kernel_id = dispatch_data.dispatch_info.kernel_id;
|
||||
auto dispatch_id = dispatch_data.dispatch_info.dispatch_id;
|
||||
|
||||
EXPECT_EQ(sizeof(rocprofiler_profile_counting_dispatch_data_t), dispatch_data.size);
|
||||
EXPECT_EQ(sizeof(rocprofiler_dispatch_counting_service_data_t), dispatch_data.size);
|
||||
EXPECT_EQ(expected.kernel_id, kernel_id);
|
||||
EXPECT_EQ(expected.dispatch_id, dispatch_id);
|
||||
EXPECT_EQ(expected.agent_id, agent_id);
|
||||
@@ -533,7 +533,7 @@ TEST(core, start_stop_buffered_ctx)
|
||||
&opt_buff_id),
|
||||
"Could not create buffer");
|
||||
|
||||
ROCPROFILER_CALL(rocprofiler_configure_buffered_dispatch_profile_counting_service(
|
||||
ROCPROFILER_CALL(rocprofiler_configure_buffered_dispatch_counting_service(
|
||||
get_client_ctx(), opt_buff_id, null_dispatch_callback, (void*) 0x12345),
|
||||
"Could not setup buffered service");
|
||||
ROCPROFILER_CALL(rocprofiler_start_context(get_client_ctx()), "start context");
|
||||
@@ -595,11 +595,11 @@ TEST(core, start_stop_callback_ctx)
|
||||
ROCPROFILER_CALL(rocprofiler_create_context(&get_client_ctx()), "context creation failed");
|
||||
|
||||
ROCPROFILER_CALL(
|
||||
rocprofiler_configure_callback_dispatch_profile_counting_service(get_client_ctx(),
|
||||
null_dispatch_callback,
|
||||
(void*) 0x12345,
|
||||
null_record_callback,
|
||||
(void*) 0x54321),
|
||||
rocprofiler_configure_callback_dispatch_counting_service(get_client_ctx(),
|
||||
null_dispatch_callback,
|
||||
(void*) 0x12345,
|
||||
null_record_callback,
|
||||
(void*) 0x54321),
|
||||
"Could not setup counting service");
|
||||
ROCPROFILER_CALL(rocprofiler_start_context(get_client_ctx()), "start context");
|
||||
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle