SWDEV-254329 - Fix for profiler ON/OFF

Change-Id: Iea72ae96ebe7ed95322dfc39d785ac326b47f6dc


[ROCm/clr commit: 14d54a7b29]
这个提交包含在:
Sarbojit Sarkar 编写, Sarbojit Sarkar 于 2021-03-02 02:16:14 -05:00 提交
1 父节点 f6cc68deac
当前提交 469f00e6f3
4 个文件已更改
+5 -5

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

+1 -1
查看文件
@@ -45,7 +45,7 @@ namespace amd {
Event::Event(HostQueue& queue)
: callbacks_(NULL),
status_(CL_INT_MAX),
profilingInfo_(queue.properties().test(CL_QUEUE_PROFILING_ENABLE) ||
profilingInfo_(IS_PROFILER_ON || queue.properties().test(CL_QUEUE_PROFILING_ENABLE) ||
Agent::shouldPostEventEvents()) {
notified_.clear();
}
+2 -4
查看文件
@@ -99,10 +99,8 @@ class Event : public RuntimeObject {
struct ProfilingInfo {
ProfilingInfo(bool enabled = false) : enabled_(enabled), waves_(0), marker_ts_(false) {
if (enabled) {
clear();
callback_ = nullptr;
}
clear();
callback_ = nullptr;
}
uint64_t queued_;
+1
查看文件
@@ -82,6 +82,7 @@ namespace amd {
#endif // __APPLE__
bool IS_HIP = false;
std::atomic_bool IS_PROFILER_ON(false);
#if defined(WITH_GPU_DEVICE)
bool IS_LEGACY = true;
+1
查看文件
@@ -265,6 +265,7 @@ release(cstring, AMD_LOG_LEVEL_FILE, "", \
namespace amd {
extern bool IS_HIP;
extern std::atomic_bool IS_PROFILER_ON;
extern bool IS_LEGACY;