SWDEV-465088 - Bypass memcpy kind check for H2H memcpy if XNACK is enabled.

Change-Id: I3e9b23dfb1aedeaf5ea0f26668caddb277ead809
Tá an tiomantas seo le fáil i:
Jaydeep Patel
2024-06-27 17:11:27 +00:00
tiomanta ag Jaydeepkumar Patel
tuismitheoir 749385155a
tiomantas 7d7db316b3
+2 -1
Féach ar an gComhad
@@ -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;
}
}