SWDEV-465088 - Bypass memcpy kind check for H2H memcpy if XNACK is enabled.
Change-Id: I3e9b23dfb1aedeaf5ea0f26668caddb277ead809
Ta zmiana jest zawarta w:
1 rodzic
749385155a
złożenie
7d7db316b3
Plik 1 zmieniony
+2
-1
@@ -347,7 +347,8 @@ bool IsHtoHMemcpyValid(void* dst, const void* src, hipMemcpyKind kind) {
|
||||
size_t dOffset = 0;
|
||||
amd::Memory* dstMemory = getMemoryObject(dst, dOffset);
|
||||
if (src && dst && srcMemory == nullptr && dstMemory == nullptr) {
|
||||
if (kind != hipMemcpyHostToHost && kind != hipMemcpyDefault) {
|
||||
if (!g_devices[0]->devices()[0]->info().hmmCpuMemoryAccessible_ &&
|
||||
kind != hipMemcpyHostToHost && kind != hipMemcpyDefault) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika