Fix mutex order for event task and move args to gpu

This commit fixes problem with untransfered shared usm memory to gpu
when there is submit to gpu trigerred by user event. Also there is a fix
for dead lock problem caused by mixed orders of locking mutexes in csr
and in direct submission controller.

Related-To: NEO-6762

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2022-05-19 10:06:08 +00:00
committed by Compute-Runtime-Automation
parent d308df254c
commit 6ab6e1abff
18 changed files with 427 additions and 139 deletions

View File

@ -106,6 +106,7 @@ class MockKernel : public Kernel {
using Kernel::hasDirectStatelessAccessToHostMemory;
using Kernel::hasDirectStatelessAccessToSharedBuffer;
using Kernel::hasIndirectStatelessAccessToHostMemory;
using Kernel::isUnifiedMemorySyncRequired;
using Kernel::kernelArgHandlers;
using Kernel::kernelArgRequiresCacheFlush;
using Kernel::kernelArguments;
@ -250,6 +251,7 @@ class MockKernel : public Kernel {
uint32_t makeResidentCalls = 0;
uint32_t getResidencyCalls = 0;
uint32_t setArgSvmAllocCalls = 0;
uint32_t moveArgsToGpuDomainCalls = 0;
bool canKernelTransformImages = true;
bool isPatchedOverride = true;