SWDEV-465088 - Bypass memcpy kind check for H2H memcpy if XNACK is enabled.
Change-Id: I3e9b23dfb1aedeaf5ea0f26668caddb277ead809
Tá an tiomantas seo le fáil i:
tiomanta ag
Jaydeepkumar Patel
tuismitheoir
749385155a
tiomantas
7d7db316b3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir