/// <summary>
		/// </summary>
		public CudaSparseCsrgemm2Info()
		{
			_info = new csrgemm2Info();
			res = CudaSparseNativeMethods.cusparseCreateCsrgemm2Info(ref _info);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateCsrgemm2Info", res));
			if (res != cusparseStatus.Success)
				throw new CudaSparseException(res);
		}
Exemple #2
0
 /// <summary>
 /// </summary>
 public CudaSparseCsrgemm2Info()
 {
     _info = new csrgemm2Info();
     res   = CudaSparseNativeMethods.cusparseCreateCsrgemm2Info(ref _info);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateCsrgemm2Info", res));
     if (res != cusparseStatus.Success)
     {
         throw new CudaSparseException(res);
     }
 }
		public static extern cusparseStatus cusparseXcsrgemm2Nnz(cusparseContext handle,
												  int m,
												  int n,
												  int k,
												  cusparseMatDescr descrA,
												  int nnzA,
												  CUdeviceptr csrSortedRowPtrA,
												  CUdeviceptr csrSortedColIndA,
												  cusparseMatDescr descrB,
												  int nnzB,
												  CUdeviceptr csrSortedRowPtrB,
												  CUdeviceptr csrSortedColIndB,
												  cusparseMatDescr descrD,
												  int nnzD,
												  CUdeviceptr csrSortedRowPtrD,
												  CUdeviceptr csrSortedColIndD,
												  cusparseMatDescr descrC,
												  CUdeviceptr csrSortedRowPtrC,
												  CUdeviceptr nnzTotalDevHostPtr,
												  csrgemm2Info info,
												  CUdeviceptr pBuffer);
		public static extern cusparseStatus cusparseZcsrgemm2(cusparseContext handle,
											   int m,
											   int n,
											   int k,
											   CUdeviceptr alpha,
											   cusparseMatDescr descrA,
											   int nnzA,
											   CUdeviceptr csrSortedValA,
											   CUdeviceptr csrSortedRowPtrA,
											   CUdeviceptr csrSortedColIndA,
											   cusparseMatDescr descrB,
											   int nnzB,
											   CUdeviceptr csrSortedValB,
											   CUdeviceptr csrSortedRowPtrB,
											   CUdeviceptr csrSortedColIndB,
											   CUdeviceptr beta,
											   cusparseMatDescr descrD,
											   int nnzD,
											   CUdeviceptr csrSortedValD,
											   CUdeviceptr csrSortedRowPtrD,
											   CUdeviceptr csrSortedColIndD,
											   cusparseMatDescr descrC,
											   CUdeviceptr csrSortedValC,
											   CUdeviceptr csrSortedRowPtrC,
											   CUdeviceptr csrSortedColIndC,
											   csrgemm2Info info,
											   CUdeviceptr pBuffer);
		public static extern cusparseStatus cusparseZcsrgemm2_bufferSizeExt(cusparseContext handle,
															 int m,
															 int n,
															 int k,
															 CUdeviceptr alpha,
															 cusparseMatDescr descrA,
															 int nnzA,
															 CUdeviceptr csrSortedRowPtrA,
															 CUdeviceptr csrSortedColIndA,
															 cusparseMatDescr descrB,
															 int nnzB,
															 CUdeviceptr csrSortedRowPtrB,
															 CUdeviceptr csrSortedColIndB,
															 CUdeviceptr beta,
															 cusparseMatDescr descrD,
															 int nnzD,
															 CUdeviceptr csrSortedRowPtrD,
															 CUdeviceptr csrSortedColIndD,
															 csrgemm2Info info,
															 ref SizeT pBufferSizeInBytes);
		public static extern cusparseStatus cusparseDestroyCsrgemm2Info(csrgemm2Info info);
		public static extern cusparseStatus cusparseCreateCsrgemm2Info(ref csrgemm2Info info);