adding queue destroy callback

[ROCm/rocprofiler commit: 33b3546fe4]
Tento commit je obsažen v:
Evgeny
2018-02-21 19:59:47 -06:00
rodič 6eef0003a5
revize ff5b92b47b
6 změnil soubory, kde provedl 92 přidání a 49 odebrání
+8 -1
Zobrazit soubor
@@ -329,7 +329,7 @@ class Context {
const profile_vector_t profile_vector = GetProfiles(group_index);
for (auto& tuple : profile_vector) {
// Wait for stop packet to complete
const uint64_t timeout = UINT64_MAX;
const uint64_t timeout = timeout_;
bool complete = false;
while (!complete) {
const hsa_signal_value_t signal_value = hsa_signal_wait_scacquire(tuple.completion_signal, HSA_SIGNAL_CONDITION_LT, 1, timeout,
@@ -372,6 +372,10 @@ class Context {
}
}
static void SetTimeout(uint64_t timeout) {
timeout_ = timeout;
}
private:
// Getting profling packets
profile_vector_t GetProfiles(const uint32_t& index) {
@@ -469,6 +473,9 @@ class Context {
return info;
}
// Profiling data waiting timeout
static uint64_t timeout_;
// GPU handel
const hsa_agent_t agent_;
const util::AgentInfo* agent_info_;