SWDEV-522841 - Graph nodes must be created/launched on device where they are captured/created (#108)
[ROCm/clr commit: 2538d7f02b]
Este cometimento está contido em:
1 ascendente
6ab34e0924
cometimento
e4a499f22e
5 ficheiros modificados
+55
-53
Não existem ficheiros que correspondam à sua pesquisa
@@ -128,17 +128,17 @@ hip::Stream* getStream(hipStream_t stream, bool wait) {
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
hip::Stream* getNullStream(amd::Context& ctx) {
|
||||
hip::Stream* getNullStream(amd::Context& ctx, bool wait) {
|
||||
for (auto& it : g_devices) {
|
||||
if (it->asContext() == &ctx) {
|
||||
return it->NullStream();
|
||||
return it->NullStream(wait);
|
||||
}
|
||||
}
|
||||
// If it's a pure SVM allocation with system memory access, then it shouldn't matter which device
|
||||
// runtime selects by default
|
||||
if (hip::host_context == &ctx) {
|
||||
// Return current...
|
||||
return getNullStream();
|
||||
return getNullStream(wait);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador