SWDEV-535490 - Improve logging (#441)

- Include HIP version/githash in the logs
- Add a new method to print library path
这个提交包含在:
Kudchadker, Saleel 编写, GitHub 于 2025-06-24 13:00:00 -07:00 提交
1 父节点 0f4ad06629
当前提交 5d53c83806
6 个文件已更改
+34 -4

没有与搜索条件相匹配的文件

+1 -2
查看文件
@@ -390,7 +390,6 @@ hsa_status_t Device::loaderQueryHostAddress(const void* device, const void** hos
// ================================================================================================
bool Device::init() {
ClPrint(amd::LOG_INFO, amd::LOG_INIT, "Initializing HSA stack.");
hsa_status_t status = HSA_STATUS_SUCCESS;
// Initialize the compiler
if (!initCompiler(offlineDevice_)) {
@@ -476,7 +475,7 @@ bool Device::init() {
gpu_agents_ = valid_agents;
}
LogPrintfInfo("Enumerated GPU agents = %lu", gpu_agents_.size());
LogPrintfInfo("Initalizing runtime stack, Enumerated GPU agents = %lu", gpu_agents_.size());
for (auto agent : gpu_agents_) {
std::unique_ptr<Device> roc_device(new Device(agent));