Merge pull request #742 from gargrahul/fix_module_global_tracking

Fixes global symbols tracking in hip_module

[ROCm/hip commit: 8d8d12f65d]
Tá an tiomantas seo le fáil i:
Maneesh Gupta
2018-11-08 11:41:35 +05:30
tiomanta ag GitHub
tuismitheoir bd46fd037d d4815f4178
tiomantas 79861d3eeb
+5
Féach ar an gComhad
@@ -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>>