/// <summary>
        /// 
        /// </summary>
        public CudaStopWatch()
        {
            _start = new CudaEvent();
			_stop = new CudaEvent();
            _stream = new CUstream();

        }
        /// <summary>
        /// 
        /// </summary>
        public CudaStopWatch(CUEventFlags flags)
        {
			_start = new CudaEvent(flags);
			_stop = new CudaEvent(flags);
            _stream = new CUstream();

		}
		/// <summary>
		/// 
		/// </summary>
		public CudaStopWatch(CUstream stream)
		{
			_start = new CudaEvent();
			_stop = new CudaEvent();
			_stream = stream;

		}
Exemple #4
0
        /// <summary>
        /// Creates a new Stream
        /// </summary>
        /// <param name="flags">Parameters for stream creation (must be <see cref="CUStreamFlags.None"/>)</param>
        public CudaStream(CUStreamFlags flags)
        {
            _stream = new CUstream();

            res = DriverAPINativeMethods.Streams.cuStreamCreate(ref _stream, flags);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuStreamCreate", res));
            if (res != CUResult.Success) throw new CudaException(res);
			_isOwner = true;
        }
Exemple #5
0
			public static extern CUResult cuStreamCreateWithPriority(ref CUstream phStream, CUStreamFlags flags, int priority);
Exemple #6
0
 public static extern CUResult  cuStreamWaitEvent(CUstream hStream, CUevent hEvent, uint Flags);
Exemple #7
0
			public static extern CUResult cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, IntPtr userData, CUStreamAddCallbackFlags flags);
Exemple #8
0
 public static extern CUResult cuMemcpyDtoHAsync_v2([Out] IntPtr dstHost, CUdeviceptr srcDevice, SizeT ByteCount, CUstream hStream);
Exemple #9
0
 public static extern CUResult cuMemcpyAtoHAsync_v2([Out] IntPtr dstHost, CUarray srcArray, SizeT srcOffset, SizeT ByteCount, CUstream hStream);
Exemple #10
0
			public static extern CUResult cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, SizeT length, CUmemAttach_flags flags);
Exemple #11
0
 public static extern CUResult cuGraphicsUnmapResources(uint count, CUgraphicsResource[] resources, CUstream hStream);           
Exemple #12
0
 public static extern CUResult cuLaunchKernel(CUfunction f,
                     uint gridDimX,
                     uint gridDimY,
                     uint gridDimZ,
                     uint blockDimX,
                     uint blockDimY,
                     uint blockDimZ,
                     uint sharedMemBytes,
                     CUstream hStream,
                     IntPtr[] kernelParams,
                     IntPtr[] extra);
Exemple #13
0
 public static extern CUResult cuEventRecord( CUevent hEvent, CUstream hStream );
Exemple #14
0
 public static extern CUResult cuMemsetD32Async(CUdeviceptr dstDevice, uint ui, SizeT N, CUstream hStream);
Exemple #15
0
 public static extern CUResult cuMemsetD2D32Async(CUdeviceptr dstDevice, SizeT dstPitch, uint ui, SizeT Width, SizeT Height, CUstream hStream);
Exemple #16
0
 public static extern CUResult cuMemsetD16Async(CUdeviceptr dstDevice, ushort us, SizeT N, CUstream hStream);
Exemple #17
0
 public static extern CUResult cuMemsetD8Async(CUdeviceptr dstDevice, byte b, SizeT N, CUstream hStream);
Exemple #18
0
 public static extern CUResult cuMemcpy3DAsync_v2(ref CUDAMemCpy3D pCopy, CUstream hStream);
Exemple #19
0
			public static extern CUResult cuStreamGetPriority(CUstream hStream, ref int priority);
Exemple #20
0
 public static extern CUResult  cuStreamCreate( ref CUstream phStream, CUStreamFlags Flags );
Exemple #21
0
			public static extern CUResult cuStreamGetFlags(CUstream hStream, ref CUStreamFlags flags);
Exemple #22
0
		/// <summary>
		/// 
		/// </summary>
		public CudaStopWatch(CUEventFlags flags, CUstream stream)
		{
			_start = new CudaEvent(flags);
			_stop = new CudaEvent(flags);
			_stream = stream;
		}       
Exemple #23
0
 public static extern CUResult cuGraphicsMapResources(uint count, ref CUgraphicsResource resources, CUstream hStream);
Exemple #24
0
 public static extern CUResult cuMemcpyHtoDAsync_v2(CUdeviceptr dstDevice, [In] IntPtr srcHost, SizeT ByteCount, CUstream hStream);
Exemple #25
0
 public static extern CUResult cuMemcpyDtoDAsync_v2(CUdeviceptr dstDevice, CUdeviceptr srcDevice, SizeT ByteCount, CUstream hStream);
Exemple #26
0
 public static extern CUResult  cuStreamDestroy_v2( CUstream hStream );           
Exemple #27
0
 public static extern CUResult  cuStreamQuery( CUstream hStream );
Exemple #28
0
 public static extern CUResult cuMemcpyHtoAAsync_v2(CUarray dstArray, SizeT dstOffset, [In] IntPtr srcHost, SizeT ByteCount, CUstream hStream);
		public static extern cusparseStatus cusparseSetStream(cusparseContext handle, CUstream streamId);
Exemple #30
0
 public static extern CUResult  cuStreamSynchronize( CUstream hStream );