SWDEV-528686: ATT fix for gfx12 s_wait_idle. Fixes for csv. Default to parse to trace. Fix for ROCR_VISIBLE_DEVICES. (#345)

* Fix for gfx12 s_wait_idle. Added wait field on att.csv

* Format and default to ATT to trace

* Update .mds

* No fatal error for invalid agent

* Tidy fixes

* Rename wait to idle, removed uneeded headers

* Remove unused traceID

* Tidy fix

* Fix csv output

* Formatting

* Fix tests

* Fix tests

* Fix for visible devices

* Review comment: Fix cmake

* Review suggestion

* Remove changelog/readme

* Review comments

* Review comment for CSV

* Formatting

---------

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
Tento commit je obsažen v:
Baraldi, Giovanni
2025-04-25 18:49:16 +02:00
odevzdal GitHub
rodič cac3ac1b98
revize a8f3397069
18 změnil soubory, kde provedl 250 přidání a 275 odebrání
+9 -9
Zobrazit soubor
@@ -24,7 +24,6 @@
#include "att_lib_wrapper.hpp"
#include <atomic>
#include <map>
#include <unordered_map>
#include <vector>
@@ -39,12 +38,14 @@ struct CodeLine
{
using Instruction = rocprofiler::sdk::codeobj::disassembly::Instruction;
int line_number = 0;
int type = 0;
std::atomic<size_t> hitcount{0};
std::atomic<size_t> latency{0};
int line_number{0};
int type{0};
std::shared_ptr<Instruction> code_line{nullptr};
size_t hitcount{0};
size_t latency{0};
size_t stall{0};
size_t idle{0};
};
class CodeFile
@@ -53,11 +54,10 @@ class CodeFile
public:
CodeFile() = default;
CodeFile(const Fspath& dir, std::shared_ptr<AddressTable>& table);
CodeFile(Fspath dir, std::shared_ptr<AddressTable> table);
~CodeFile();
Fspath dir{};
Fspath filename{};
const Fspath dir{};
std::unordered_map<pcinfo_t, int> line_numbers{};
std::map<pcinfo_t, std::unique_ptr<CodeLine>> isa_map{};
std::map<pcinfo_t, KernelName> kernel_names{};