Adding Kernel Names instead Kernel Execution

Change-Id: I102a8e741eeee18d240a62ff33e9b94e8f57d5ff


[ROCm/roctracer commit: 7e8348b017]
This commit is contained in:
Ammar ELWazir
2023-10-25 13:51:58 +00:00
zatwierdzone przez Gopesh Bhardwaj
rodzic ec8c8ccc44
commit e0eb2f96b2
2 zmienionych plików z 8 dodań i 2 usunięć
+5 -2
Wyświetl plik
@@ -316,8 +316,11 @@ class file_plugin_t {
output_file = get_output_file(ACTIVITY_DOMAIN_HIP_OPS);
ss << std::dec << begin->begin_ns << ":" << begin->end_ns << " " << begin->device_id
<< ":" << begin->queue_id << " " << name << ":" << begin->correlation_id << ":"
<< GetPid() << "\n";
<< ":" << begin->queue_id << " "
<< ((begin->op == HIP_OP_ID_DISPATCH && begin->kernel_name != nullptr)
? cxx_demangle(begin->kernel_name)
: name)
<< ":" << begin->correlation_id << ":" << GetPid() << "\n";
*output_file << ss.str();
break;
}
@@ -29,6 +29,9 @@ set(CMAKE_EXECUTABLE_RPATH_LINK_HIP_FLAG ${CMAKE_SHARED_LIBRARY_RPATH_LINK_CXX_F
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${ROCM_PATH}/lib/cmake/hip")
set(CMAKE_HIP_ARCHITECTURES OFF)
if(DEFINED ROCM_PATH)
set(HIP_ROOT_DIR "${ROCM_PATH}/bin")
endif()
find_package(HIP REQUIRED MODULE)
find_package(Clang REQUIRED CONFIG