コード例 #1
0
		/// <summary>
		/// </summary>
		public CudaSparseBsrsm2Info()
		{
			_info = new bsrsm2Info();
			res = CudaSparseNativeMethods.cusparseCreateBsrsm2Info(ref _info);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateBsrsm2Info", res));
			if (res != cusparseStatus.Success)
				throw new CudaSparseException(res);
		}
コード例 #2
0
 /// <summary>
 /// </summary>
 public CudaSparseBsrsm2Info()
 {
     _info = new bsrsm2Info();
     res   = CudaSparseNativeMethods.cusparseCreateBsrsm2Info(ref _info);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateBsrsm2Info", res));
     if (res != cusparseStatus.Success)
     {
         throw new CudaSparseException(res);
     }
 }
コード例 #3
0
		public static extern cusparseStatus cusparseZbsrsm2_solve(cusparseContext handle,
												   cusparseDirection dirA,
												   cusparseOperation transA,
												   cusparseOperation transXY,
												   int mb,
												   int n,
												   int nnzb,
												   CUdeviceptr alpha,
												   cusparseMatDescr descrA,
												   CUdeviceptr bsrVal,
												   CUdeviceptr bsrRowPtr,
												   CUdeviceptr bsrColInd,
												   int blockSize,
												   bsrsm2Info info,
												   CUdeviceptr X,
												   int ldx,
												   CUdeviceptr Y,
												   int ldy,
												   cusparseSolvePolicy policy,
												   CUdeviceptr pBuffer);
コード例 #4
0
		public static extern cusparseStatus cusparseXbsrsm2_zeroPivot(cusparseContext handle,
													   bsrsm2Info info,
													   CUdeviceptr position);
コード例 #5
0
		public static extern cusparseStatus cusparseDestroyBsrsm2Info(bsrsm2Info info);
コード例 #6
0
		public static extern cusparseStatus cusparseCreateBsrsm2Info(ref bsrsm2Info info);
コード例 #7
0
		public static extern cusparseStatus cusparseZbsrsm2_bufferSizeExt(cusparseContext handle,
														cusparseDirection dirA,
														cusparseOperation transA,
														cusparseOperation transXY,
														int mb,
														int n,
														int nnzb,
														cusparseMatDescr descrA,
														CUdeviceptr bsrVal,
														CUdeviceptr bsrRowPtr,
														CUdeviceptr bsrColInd,
														int blockSize,
														bsrsm2Info info,
														ref SizeT pBufferSizeInBytes);