SWDEV-288134: Workaround to enable roctracer early

Change-Id: Iae21dbfd9f50dcf2e317130c6dc8328f17eba553
This commit is contained in:
Ammar ELWazir
2023-06-20 21:59:19 +00:00
والد 2a9595bc8f
کامیت 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();
}