public void AllocedLockCheck() { IntPtr length = new IntPtr(10); IntPtr svmMemory = Cl.SVMAlloc(_context, SVMMemFlags.ReadWrite, length, sizeof(int) * 4); ErrorCode error = Cl.EnqueueSVMMap(_commandQueue, 1, MapFlags.Read | MapFlags.Write, svmMemory, length, 0, null, out Event @event); Assert.IsTrue(error == ErrorCode.Success, $"{error}"); @event.WaitForComplete(); _ = Cl.EnqueueSVMUnmap(_commandQueue, svmMemory, 0, null, out Event @event1); @event1.WaitForComplete(); Cl.SVMFree(_context, svmMemory); }