Update rocprofiler-register support

- add rocprofiler-register to CPACK_DEBIAN_BINARY_PACKAGE_DEPENDS when found
- add rocprofiler-register to CPACK_RPM_BINARY_PACKAGE_REQUIRES when found
- remove report_tool_load_failures_explicit_
- add HSA_TOOLS_DISABLE_REGISTER flag
- add HSA_TOOLS_REPORT_REGISTER_FAILURE
- use HSA_TOOLS_REPORT_REGISTER_FAILURE instead of HSA_TOOLS_REPORT_LOAD_FAILURE
- changed rocprofiler-register message to not include the word "error"

Change-Id: Ib7fd7f14c42758a54c347874018281bb1b5477a6


[ROCm/ROCR-Runtime commit: 7ce263b0e4]
This commit is contained in:
Jonathan R. Madsen
2024-02-22 07:20:09 -06:00
committed by David Yat Sin
parent 7b3dbd6d9e
commit c85e1dc4cd
3 changed files with 46 additions and 40 deletions
@@ -151,13 +151,18 @@ class Flag {
var = os::GetEnvVar("HSA_TOOLS_REPORT_LOAD_FAILURE");
report_tool_load_failures_explicit_ = (var.empty()) ? false : true;
ifdebug {
report_tool_load_failures_ = (var == "1") ? true : false;
} else {
report_tool_load_failures_ = (var == "0") ? false : true;
}
var = os::GetEnvVar("HSA_TOOLS_DISABLE_REGISTER");
disable_tool_register_ = (var == "1") ? true : false;
var = os::GetEnvVar("HSA_TOOLS_REPORT_REGISTER_FAILURE");
report_tool_register_failures_ = (var == "1") ? true : false;
var = os::GetEnvVar("HSA_DISABLE_FRAGMENT_ALLOCATOR");
disable_fragment_alloc_ = (var == "1") ? true : false;
@@ -250,9 +255,9 @@ class Flag {
bool report_tool_load_failures() const { return report_tool_load_failures_; }
bool report_tool_load_failures_explicitly_set() const {
return report_tool_load_failures_explicit_;
}
bool report_tool_register_failures() const { return report_tool_register_failures_; }
bool disable_tool_register() const { return disable_tool_register_; }
bool disable_fragment_alloc() const { return disable_fragment_alloc_; }
@@ -340,7 +345,8 @@ class Flag {
bool sdma_wait_idle_;
bool enable_queue_fault_message_;
bool report_tool_load_failures_;
bool report_tool_load_failures_explicit_;
bool report_tool_register_failures_ = false;
bool disable_tool_register_ = false;
bool disable_fragment_alloc_;
bool rev_copy_dir_;
bool fine_grain_pcie_;