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>
Dieser Commit ist enthalten in:
1 Ursprung
320427b5f5
Commit
bb69467765
44 Dateien geändert
+327
-264
Keine Dateien entsprechen Ihrer Suche
@@ -126,7 +126,8 @@ namespace rocprofiler
|
||||
namespace hsa
|
||||
{
|
||||
void
|
||||
AgentCache::init_agent_profile_queue(const CoreApiTable& api, const AmdExtTable& ext) const
|
||||
AgentCache::init_device_counting_service_queue(const CoreApiTable& api,
|
||||
const AmdExtTable& ext) const
|
||||
{
|
||||
static std::mutex m_mutex;
|
||||
std::lock_guard<std::mutex> lock(m_mutex);
|
||||
@@ -135,7 +136,7 @@ AgentCache::init_agent_profile_queue(const CoreApiTable& api, const AmdExtTable&
|
||||
const auto* agent_ctx = []() -> const context* {
|
||||
for(auto& ctx : rocprofiler::context::get_registered_contexts())
|
||||
{
|
||||
if(ctx->agent_counter_collection) return ctx;
|
||||
if(ctx->device_counter_collection) return ctx;
|
||||
}
|
||||
return nullptr;
|
||||
}();
|
||||
@@ -178,7 +179,7 @@ AgentCache::AgentCache(const rocprofiler_agent_t* rocp_agent,
|
||||
{
|
||||
init_cpu_pool(ext_table, *this);
|
||||
init_gpu_pool(ext_table, *this);
|
||||
init_agent_profile_queue(api, ext_table);
|
||||
init_device_counting_service_queue(api, ext_table);
|
||||
} catch(std::runtime_error& e)
|
||||
{
|
||||
ROCP_WARNING << fmt::format(
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren