Exemplo n.º 1
0
 public CuGraphicsMappedResource(
     CuGraphicsResource resource,
     CuStream stream)
 {
     _resource = resource;
     _stream   = stream;
 }
Exemplo n.º 2
0
        /// <inheritdoc cref="StreamDestroy(CuStream)"/>
        public void Dispose()
        {
            var handle = Interlocked.Exchange(ref Handle, IntPtr.Zero);
            if (handle == IntPtr.Zero) return;
            var obj = new CuStream { Handle = handle };

            CheckResult(StreamDestroy(obj));
        }
Exemplo n.º 3
0
        /// <inheritdoc cref="GraphicsMapResources(int, CuGraphicsResource*, CuStream)"/>
        public unsafe CuGraphicsMappedResource Map(CuStream stream)
        {
            var copy   = this;
            var result = GraphicsMapResources(1, &copy, stream);

            CheckResult(result);

            return(new CuGraphicsMappedResource(this, stream));
        }
Exemplo n.º 4
0
 public static extern CuResult StreamWriteValue64(CuStream stream, CuDevicePtr addr, long value, int flags);
Exemplo n.º 5
0
 public static extern CuResult StreamDestroy(CuStream hStream);
Exemplo n.º 6
0
 public static extern CuResult StreamSynchronize(CuStream hStream);
Exemplo n.º 7
0
 public static extern CuResult StreamAttachMemAsync(CuStream hStream, CuDevicePtr dptr, IntPtr length, MemoryAttachFlags flags);
Exemplo n.º 8
0
 public static extern CuResult StreamWaitEvent(CuStream hStream, CuEvent hEvent, uint flags = 0);
Exemplo n.º 9
0
 public static extern CuResult MemsetD8Async(CuDevicePtr dstDevice, byte uc, IntPtr n, CuStream hStream);
Exemplo n.º 10
0
 public static extern CuResult GraphicsUnmapResources(int count, CuGraphicsResource *resources, CuStream hStream);
Exemplo n.º 11
0
 public static extern CuResult MemPrefetchAsync(CuDevicePtr devPtr, IntPtr count, CuDevice dstDevice, CuStream hStream);
Exemplo n.º 12
0
 public static extern CuResult LaunchCooperativeKernel(CuFunction f, int gridDimX, int gridDimY, int gridDimZ, int blockDimX, int blockDimY, int blockDimZ, int sharedMemBytes, CuStream hStream, void **kernelParams);
Exemplo n.º 13
0
 public static extern CuResult EventRecord(CuEvent hEvent, CuStream hStream);
Exemplo n.º 14
0
 public static extern CuResult StreamBatchMemOp(CuStream stream, int count, CuSreamBatchMemOpParams *paramArray, int flags);
Exemplo n.º 15
0
 public static extern CuResult StreamGetPriority(CuStream hStream, out int priority);
Exemplo n.º 16
0
 public static extern CuResult StreamGetFlags(CuStream hStream, out CuStreamFlags flags);
Exemplo n.º 17
0
 public static extern CuResult MemsetD16Async(CuDevicePtr dstDevice, short us, IntPtr n, CuStream hStream);
Exemplo n.º 18
0
 public static extern CuResult StreamAddCallback(CuStream hStream, CuStreamCallback callback, IntPtr userData, uint flags = 0);
Exemplo n.º 19
0
 public static extern CuResult MemsetD32Async(CuDevicePtr dstDevice, int ui, IntPtr n, CuStream hStream);
Exemplo n.º 20
0
 public static extern CuResult StreamQuery(CuStream hStream);
Exemplo n.º 21
0
 public static extern CuResult MemsetD2D16Async(CuDevicePtr dstDevice, IntPtr dstPitch, short us, IntPtr width, IntPtr height, CuStream hStream);
Exemplo n.º 22
0
 public static extern CuResult StreamCreate(out CuStream phStream, CuStreamFlags flags);
Exemplo n.º 23
0
 public static extern CuResult MemsetD2D32Async(CuDevicePtr dstDevice, IntPtr dstPitch, int ui, IntPtr width, IntPtr height, CuStream hStream);
Exemplo n.º 24
0
 public static extern CuResult StreamCreateWithPriority(out CuStream phStream, CuStreamFlags flags, int priority);
Exemplo n.º 25
0
 public static extern CuResult StreamWriteValue32(CuStream stream, CuDevicePtr addr, int value, CuStreamWriteValue flags);