Fixes global symbols tracking in hip_module

This commit is contained in:
Rahul Garg
2018-10-31 03:22:38 +05:30
rodzic e17d24b46f
commit b270313129
+5
Wyświetl plik
@@ -267,7 +267,12 @@ inline void track(const Agent_global& x) {
hc::AmPointerInfo ptr_info(nullptr, x.address, x.address, x.byte_cnt, device->_acc, true,
false);
hc::am_memtracker_add(x.address, ptr_info);
#if USE_APP_PTR_FOR_CTX
hc::am_memtracker_update(x.address, device->_deviceId, 0u, ihipGetTlsDefaultCtx());
#else
hc::am_memtracker_update(x.address, device->_deviceId, 0u);
#endif
}
template <typename Container = vector<Agent_global>>