コード例 #1
0
		/// <summary>
		/// </summary>
		public CudaSparseSolveAnalysisInfo()
		{
			_info = new cusparseSolveAnalysisInfo();
			res = CudaSparseNativeMethods.cusparseCreateSolveAnalysisInfo(ref _info);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateSolveAnalysisInfo", res));
			if (res != cusparseStatus.Success)
				throw new CudaSparseException(res);
		}
コード例 #2
0
 /// <summary>
 /// </summary>
 public CudaSparseSolveAnalysisInfo()
 {
     _info = new cusparseSolveAnalysisInfo();
     res   = CudaSparseNativeMethods.cusparseCreateSolveAnalysisInfo(ref _info);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateSolveAnalysisInfo", res));
     if (res != cusparseStatus.Success)
     {
         throw new CudaSparseException(res);
     }
 }
コード例 #3
0
		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);
コード例 #4
0
		public static extern cusparseStatus cusparseCcsrsv_analysis(cusparseContext handle, cusparseOperation transA, int m, int nnz, cusparseMatDescr descrA, CUdeviceptr csrValA, CUdeviceptr csrRowPtrA, CUdeviceptr csrColIndA, cusparseSolveAnalysisInfo info);
コード例 #5
0
		public static extern cusparseStatus cusparseZcsric0(cusparseContext handle, 
                                              cusparseOperation trans, 
                                              int m,
											  cusparseMatDescr descrA,
											  CUdeviceptr csrValA_ValM,
											/* matrix A values are updated inplace 
											   to be the preconditioner M values */
											  CUdeviceptr csrRowPtrA,
											  CUdeviceptr csrColIndA,
                                              cusparseSolveAnalysisInfo info);
コード例 #6
0
		public static extern cusparseStatus cusparseZcsrsm_solve(cusparseContext handle, cusparseOperation transA, int m, int n, ref cuDoubleComplex alpha, cusparseMatDescr descrA, CUdeviceptr csrValA, CUdeviceptr csrRowPtrA, CUdeviceptr csrColIndA, cusparseSolveAnalysisInfo info, CUdeviceptr x, int ldx, CUdeviceptr y, int ldy);
コード例 #7
0
		public static extern cusparseStatus cusparseZhybsv_solve(cusparseContext handle, cusparseOperation trans, CUdeviceptr alpha, cusparseMatDescr descra, cusparseHybMat hybA, cusparseSolveAnalysisInfo info, CUdeviceptr x, CUdeviceptr y);
コード例 #8
0
		public static extern cusparseStatus cusparseZhybsv_analysis(cusparseContext handle, cusparseOperation transA, cusparseMatDescr descrA, cusparseHybMat hybA, cusparseSolveAnalysisInfo info);
コード例 #9
0
		public static extern cusparseStatus cusparseGetLevelInfo(cusparseContext handle, 
                                                  cusparseSolveAnalysisInfo info, 
                                                  ref int nlevels,
												  ref CUdeviceptr levelPtr,
												  ref CUdeviceptr levelInd);
コード例 #10
0
		public static extern cusparseStatus cusparseDestroySolveAnalysisInfo(cusparseSolveAnalysisInfo info);
コード例 #11
0
		public static extern cusparseStatus cusparseCreateSolveAnalysisInfo(ref cusparseSolveAnalysisInfo info);
コード例 #12
0
        public static extern cusparseStatus cusparseCsrsv_solveEx(cusparseContext handle, 
                                                   cusparseOperation transA, 
                                                   int m,
												   CUdeviceptr alpha, 
                                                   cudaDataType alphatype,
                                                   cusparseMatDescr descrA,
												   CUdeviceptr csrSortedValA, 
                                                   cudaDataType csrSortedValAtype,
												   CUdeviceptr csrSortedRowPtrA,
												   CUdeviceptr csrSortedColIndA, 
                                                   cusparseSolveAnalysisInfo info,
												   CUdeviceptr f, 
                                                   cudaDataType ftype,
												   CUdeviceptr x,
                                                   cudaDataType xtype,
                                                   cudaDataType executiontype);
コード例 #13
0
 public static extern cusparseStatus cusparseCsrilu0Ex(cusparseContext handle, 
                                       cusparseOperation trans, 
                                       int m, 
                                       cusparseMatDescr descrA, 
                                       CUdeviceptr csrSortedValA_ValM, 
                                       cudaDataType csrSortedValA_ValMtype,
                                       /* matrix A values are updated inplace 
                                          to be the preconditioner M values */
                                       CUdeviceptr csrSortedRowPtrA, 
                                       CUdeviceptr csrSortedColIndA,
                                       cusparseSolveAnalysisInfo info,
                                       cudaDataType executiontype);