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>
This commit is contained in:
Benjamin Welton
2024-10-18 01:44:11 -07:00
committed by GitHub
parent 320427b5f5
commit bb69467765
44 changed files with 327 additions and 264 deletions
+14 -1
View File
@@ -21,6 +21,7 @@
// THE SOFTWARE.
#include "lib/rocprofiler-sdk/hsa/aql_packet.hpp"
#include <fmt/core.h>
#include <cstdlib>
#include <iostream>
#include "lib/common/logging.hpp"
@@ -115,7 +116,19 @@ CounterAQLPacket::CounterAQLPacket(aqlprofile_agent_handle_t ag
&CounterMemoryPool::Free,
&CounterMemoryPool::Copy,
reinterpret_cast<void*>(&pool));
if(status != HSA_STATUS_SUCCESS) ROCP_FATAL << "Could not create PMC packets!";
if(status != HSA_STATUS_SUCCESS)
{
std::string event_list;
for(const auto& event : events)
{
event_list += fmt::format("[{},{},{}],",
event.block_index,
event.event_id,
static_cast<int>(event.block_name));
}
ROCP_FATAL << "Could not create PMC packets! AQLProfile Return Code: " << status
<< " Events: " << event_list;
}
packets.start_packet.header = VENDOR_BIT;
packets.stop_packet.header = VENDOR_BIT | BARRIER_BIT;