Adding att v3 support (#84)

* Adding att v3 support

* misc fix

* bug fix

* Python linting workflow and rules

* fix regex

* Adding temporary args

* fix temporary args

* fix format

* remove att_perfcounters from test input

* Review comments (#163)

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>

* Revert "Review comments (#163)"

This reverts commit 9ef0f8e5a4489d5581255e1b70ced2aef5c1c1d0.

* Address review comments 2

* review changes

* review comments

* review

* cmake alias

* review

* review

* review

* review

* Enabling percounter in v3 script

* review

* formatting

* formatting

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Co-authored-by: Baraldi, Giovanni <Giovanni.Baraldi@amd.com>
Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
This commit is contained in:
Nagaraj, Sriraksha
2025-02-04 04:05:38 -06:00
committato da GitHub
parent 72a27feb04
commit d4a51e4102
32 ha cambiato i file con 2068 aggiunte e 43 eliminazioni
@@ -86,8 +86,8 @@ get_shader_id(const std::string& name)
auto run_pos = name.rfind('_');
if(run_pos == std::string::npos) throw std::runtime_error("Invalid name");
std::string_view stripped = name.substr(0, run_pos);
auto se_number_pos = stripped.rfind('_');
std::string stripped = name.substr(0, run_pos);
auto se_number_pos = stripped.rfind('_');
if(se_number_pos == std::string::npos || se_number_pos + 1 >= stripped.size())
throw std::runtime_error("Invalid name");
@@ -97,15 +97,11 @@ get_shader_id(const std::string& name)
std::vector<tool_att_capability_t>
query_att_decode_capability()
{
std::vector<tool_att_capability_t> ret;
auto ret = std::vector<tool_att_capability_t>{};
for(auto& [cap, libname] : get_lib_names())
{
if(auto handle = dlopen(libname, RTLD_NOW | RTLD_LOCAL))
{
dlclose(handle);
ret.push_back(cap);
}
if(DL(libname).handle != 0) ret.push_back(cap);
}
return ret;