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


C# CudaSparse.cusparseContext类代码示例

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


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

示例1: cusparseCbsric02

        public static extern cusparseStatus cusparseCbsric02(cusparseContext handle,
											  cusparseDirection dirA,
											  int mb,
											  int nnzb,
											  cusparseMatDescr descrA,
											  CUdeviceptr bsrVal,
											  CUdeviceptr bsrRowPtr,
											  CUdeviceptr bsrColInd,
											  int blockDim,
											  bsric02Info info,
											  cusparseSolvePolicy policy,
											  CUdeviceptr pBuffer);
开发者ID:kunzmi,项目名称:managedCuda,代码行数:12,代码来源:CudaSparseNativeMethods.cs

示例2: cusparseCbsr2csr

        public static extern cusparseStatus cusparseCbsr2csr(cusparseContext handle,
											cusparseDirection dirA,
											int mb,
											int nb,
											cusparseMatDescr descrA,
											CUdeviceptr bsrValA,
											CUdeviceptr bsrRowPtrA,
											CUdeviceptr bsrColIndA,
											int blockDim,
											cusparseMatDescr descrC,
											CUdeviceptr csrValC,
											CUdeviceptr csrRowPtrC,
											CUdeviceptr csrColIndC);
开发者ID:kunzmi,项目名称:managedCuda,代码行数:13,代码来源:CudaSparseNativeMethods.cs

示例3: cusparseZcsrsv2_analysis

		public static extern cusparseStatus cusparseZcsrsv2_analysis(cusparseContext handle,
													  cusparseOperation transA,
													  int m,
													  int nnz,
													  cusparseMatDescr descrA,
													  CUdeviceptr csrValA,
													  CUdeviceptr csrRowPtrA,
													  CUdeviceptr csrColIndA,
													  csrsv2Info info,
													  cusparseSolvePolicy policy,
													  CUdeviceptr pBuffer);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:11,代码来源:CudaSparseNativeMethods.cs

示例4: cusparseZcsrsv_solve

		public static extern cusparseStatus cusparseZcsrsv_solve(cusparseContext handle, cusparseOperation transA, int m, CUdeviceptr alpha, cusparseMatDescr descrA, CUdeviceptr csrValA, CUdeviceptr csrRowPtrA, CUdeviceptr csrColIndA, cusparseSolveAnalysisInfo info, CUdeviceptr x, CUdeviceptr y);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs

示例5: cusparseSetPointerMode

		public static extern cusparseStatus cusparseSetPointerMode(cusparseContext handle, cusparsePointerMode mode);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs

示例6: cusparseCcsrsv_analysis

		public static extern cusparseStatus cusparseCcsrsv_analysis(cusparseContext handle, cusparseOperation transA, int m, int nnz, cusparseMatDescr descrA, CUdeviceptr csrValA, CUdeviceptr csrRowPtrA, CUdeviceptr csrColIndA, cusparseSolveAnalysisInfo info);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs

示例7: cusparseXcscsort_bufferSizeExt

		public static extern cusparseStatus cusparseXcscsort_bufferSizeExt(cusparseContext handle,
                                                            int m,
                                                            int n,
                                                            int nnz,
                                                            CUdeviceptr cscColPtrA,
                                                            CUdeviceptr cscRowIndA,
                                                            ref SizeT pBufferSizeInBytes);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:7,代码来源:CudaSparseNativeMethods.cs

示例8: cusparseXcoosort_bufferSizeExt

		public static extern cusparseStatus cusparseXcoosort_bufferSizeExt(cusparseContext handle,
                                                            int m,
                                                            int n,
                                                            int nnz,
                                                            CUdeviceptr cooRowsA,
                                                            CUdeviceptr cooColsA,
                                                            ref SizeT pBufferSizeInBytes);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:7,代码来源:CudaSparseNativeMethods.cs

示例9: cusparseZgebsr2gebsc_bufferSizeExt

		public static extern cusparseStatus cusparseZgebsr2gebsc_bufferSizeExt(cusparseContext handle,
															 int mb,
															 int nb,
															 int nnzb,
															 CUdeviceptr bsrVal,
															 CUdeviceptr bsrRowPtr,
															 CUdeviceptr bsrColInd,
															 int rowBlockDim,
															 int colBlockDim,
															 ref SizeT pBufferSize);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:10,代码来源:CudaSparseNativeMethods.cs

示例10: cusparseZbsrxmv

		public static extern cusparseStatus cusparseZbsrxmv(cusparseContext handle,
											cusparseDirection dirA,
											cusparseOperation transA,
											int sizeOfMask,
											int mb,
											int nb,
											int nnzb,
											CUdeviceptr alpha,
											cusparseMatDescr descrA,
											CUdeviceptr bsrValA,
											CUdeviceptr bsrMaskPtrA,
											CUdeviceptr bsrRowPtrA,
											CUdeviceptr bsrEndPtrA,
											CUdeviceptr bsrColIndA,
											int blockDim,
											CUdeviceptr x,
											CUdeviceptr beta,
											CUdeviceptr y);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:18,代码来源:CudaSparseNativeMethods.cs

示例11: cusparseSetStream

		public static extern cusparseStatus cusparseSetStream(cusparseContext handle, CUstream streamId);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs

示例12: cusparseZgemvi

		public static extern cusparseStatus cusparseZgemvi(cusparseContext handle,
									cusparseOperation transA,
									int m,
									int n,
									CUdeviceptr alpha, /* host or device pointer */
									CUdeviceptr A,
									int lda,
									int nnz,
									CUdeviceptr xVal,
									CUdeviceptr xInd,
									CUdeviceptr beta, /* host or device pointer */
									CUdeviceptr y,
									cusparseIndexBase idxBase,
									CUdeviceptr pBuffer);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:14,代码来源:CudaSparseNativeMethods.cs

示例13: cusparseZbsrmv

		public static extern cusparseStatus cusparseZbsrmv(cusparseContext handle,
											cusparseDirection dirA,
											cusparseOperation transA,
											int mb,
											int nb,
											int nnzb,
											ref cuDoubleComplex alpha,
											cusparseMatDescr descrA,
											CUdeviceptr bsrValA,
											CUdeviceptr bsrRowPtrA,
											CUdeviceptr bsrColIndA,
											int blockDim,
											CUdeviceptr x,
											ref cuDoubleComplex beta,
											CUdeviceptr y);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:15,代码来源:CudaSparseNativeMethods.cs

示例14: cusparseGetVersion

		public static extern cusparseStatus cusparseGetVersion(cusparseContext handle, ref int version);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs

示例15: cusparseDestroy

		public static extern cusparseStatus cusparseDestroy(cusparseContext handle);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaSparseNativeMethods.cs


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