SWDEV-363069 - Disable sync force for MT
hipMemcpyAsync doesn't require any forced sync even for sysmem
Change-Id: I83951f6118e84d79c74d5671df62678c5db085a8
[ROCm/clr commit: 52ff4368e5]
Этот коммит содержится в:
коммит произвёл
German Andryeyev
родитель
23fc103652
Коммит
e3f6a5fa0d
@@ -446,10 +446,14 @@ hipError_t ihipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKin
|
|||||||
return hipErrorInvalidValue;
|
return hipErrorInvalidValue;
|
||||||
}
|
}
|
||||||
} else if ((srcMemory == nullptr) && (dstMemory != nullptr)) {
|
} else if ((srcMemory == nullptr) && (dstMemory != nullptr)) {
|
||||||
|
if (AMD_DIRECT_DISPATCH) {
|
||||||
isAsync = false;
|
isAsync = false;
|
||||||
|
}
|
||||||
} else if ((srcMemory != nullptr) && (dstMemory == nullptr)) {
|
} else if ((srcMemory != nullptr) && (dstMemory == nullptr)) {
|
||||||
|
if (AMD_DIRECT_DISPATCH) {
|
||||||
isAsync = false;
|
isAsync = false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
amd::Command* command = nullptr;
|
amd::Command* command = nullptr;
|
||||||
status = ihipMemcpyCommand(command, dst, src, sizeBytes, kind, queue);
|
status = ihipMemcpyCommand(command, dst, src, sizeBytes, kind, queue);
|
||||||
if (status != hipSuccess) {
|
if (status != hipSuccess) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user