SWDEV-361730 - Fix to match the kernel arg allocation sizes between gpu visible mem and host/runtime mem

Change-Id: I6495aa57e97b46373c1d90cc230435780fdcf3ef
Ta zmiana jest zawarta w:
Sourabh Betigeri authored and Sourabh Betigeri committed 2022-10-20 14:20:37 -04:00
1 rodzic a5b550e828
złożenie b2665ccc4b
2 plików zmienionych
+5 -3

Żadne pliki nie pasują do Twojego wyszukiwania

+2 -1
Wyświetl plik
@@ -2964,7 +2964,8 @@ bool VirtualGPU::submitKernelInternal(const amd::NDRangeContainer& sizes,
argBuffer = reinterpret_cast<address>(allocKernArg(gpuKernel.KernargSegmentByteSize(),
gpuKernel.KernargSegmentAlignment()));
// Load all kernel arguments
memcpy(argBuffer, parameters, gpuKernel.KernargSegmentByteSize());
memcpy(argBuffer, parameters, std::min(gpuKernel.KernargSegmentByteSize(),
signature.paramsSize()));
}
// Check for group memory overflow