SWDEV-300471 - updated hipFree to wait for all streams to finish
Change-Id: I4983ef48a9e720ed03128d83a8d23ad11024fd8f
[ROCm/clr commit: c9d9fd992a]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
00bce2cfc2
tiomantas
64799f183f
5 comhad athraithe
+21
-5
Níor tháinig aon chomhaid le do chuardach
@@ -115,6 +115,16 @@ amd::HostQueue* getNullStream(amd::Context& ctx) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
int getDeviceID(amd::Context& ctx) {
|
||||
for (auto& it : g_devices) {
|
||||
if (it->asContext() == &ctx) {
|
||||
return it->deviceId();
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
amd::HostQueue* getNullStream() {
|
||||
Device* device = getCurrentDevice();
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir