Пример #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);
     }
 }
		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);
		public static extern cusparseStatus cusparseXbsrsm2_zeroPivot(cusparseContext handle,
													   bsrsm2Info info,
													   CUdeviceptr position);
		public static extern cusparseStatus cusparseDestroyBsrsm2Info(bsrsm2Info info);
		public static extern cusparseStatus cusparseCreateBsrsm2Info(ref bsrsm2Info info);
		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);