SWDEV-288134: Workaround to enable roctracer early
Change-Id: Iae21dbfd9f50dcf2e317130c6dc8328f17eba553
[ROCm/roctracer commit: 04d0bd4874]
Этот коммит содержится в:
@@ -53,6 +53,8 @@
|
||||
#include "trace_buffer.h"
|
||||
#include "xml.h"
|
||||
|
||||
void initialize() __attribute__((constructor(101)));
|
||||
|
||||
namespace fs = std::experimental::filesystem;
|
||||
|
||||
// Macro to check ROC-tracer calls status
|
||||
@@ -322,7 +324,9 @@ static std::string getKernelNameMultiKernelMultiDevice(hipLaunchParams* launchPa
|
||||
return name_str.str();
|
||||
}
|
||||
|
||||
template <typename... Ts> struct Overloaded : Ts... { using Ts::operator()...; };
|
||||
template <typename... Ts> struct Overloaded : Ts... {
|
||||
using Ts::operator()...;
|
||||
};
|
||||
template <class... Ts> Overloaded(Ts...) -> Overloaded<Ts...>;
|
||||
|
||||
|
||||
@@ -777,3 +781,7 @@ ROCTRACER_EXPORT bool OnLoad(HsaApiTable* table, uint64_t runtime_version,
|
||||
ROCTRACER_EXPORT void OnUnload() { tool_unload(); }
|
||||
|
||||
} // extern "C"
|
||||
|
||||
void initialize() {
|
||||
tool_load();
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user