当前位置: 首页>>代码示例>>C#>>正文


C# BasicTypes.CUstream类代码示例

本文整理汇总了C#中ManagedCuda.BasicTypes.CUstream的典型用法代码示例。如果您正苦于以下问题:C# CUstream类的具体用法?C# CUstream怎么用?C# CUstream使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CUstream类属于ManagedCuda.BasicTypes命名空间,在下文中一共展示了CUstream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CudaStopWatch

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

        }
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:10,代码来源:CudaStopWatch.cs

示例2: CudaStream

        /// <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;
        }
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:13,代码来源:CudaStream.cs

示例3: cuStreamCreateWithPriority

			public static extern CUResult cuStreamCreateWithPriority(ref CUstream phStream, CUStreamFlags flags, int priority);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例4: cuStreamWaitEvent

 public static extern CUResult  cuStreamWaitEvent(CUstream hStream, CUevent hEvent, uint Flags);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例5: cuStreamAddCallback

			public static extern CUResult cuStreamAddCallback(CUstream hStream, CUstreamCallback callback, IntPtr userData, CUStreamAddCallbackFlags flags);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例6: cuMemcpyDtoHAsync_v2

 public static extern CUResult cuMemcpyDtoHAsync_v2([Out] IntPtr dstHost, CUdeviceptr srcDevice, SizeT ByteCount, CUstream hStream);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例7: cuMemcpyAtoHAsync_v2

 public static extern CUResult cuMemcpyAtoHAsync_v2([Out] IntPtr dstHost, CUarray srcArray, SizeT srcOffset, SizeT ByteCount, CUstream hStream);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例8: cuStreamAttachMemAsync

			public static extern CUResult cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, SizeT length, CUmemAttach_flags flags);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例9: cuGraphicsUnmapResources

 public static extern CUResult cuGraphicsUnmapResources(uint count, CUgraphicsResource[] resources, CUstream hStream);           
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例10: cuLaunchKernel

 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);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:11,代码来源:DriverAPI.cs

示例11: cuEventRecord

 public static extern CUResult cuEventRecord( CUevent hEvent, CUstream hStream );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例12: cuMemsetD32Async

 public static extern CUResult cuMemsetD32Async(CUdeviceptr dstDevice, uint ui, SizeT N, CUstream hStream);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例13: cuMemsetD2D32Async

 public static extern CUResult cuMemsetD2D32Async(CUdeviceptr dstDevice, SizeT dstPitch, uint ui, SizeT Width, SizeT Height, CUstream hStream);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例14: cuMemsetD16Async

 public static extern CUResult cuMemsetD16Async(CUdeviceptr dstDevice, ushort us, SizeT N, CUstream hStream);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs

示例15: cuMemsetD8Async

 public static extern CUResult cuMemsetD8Async(CUdeviceptr dstDevice, byte b, SizeT N, CUstream hStream);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:DriverAPI.cs


注:本文中的ManagedCuda.BasicTypes.CUstream类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。