/// <summary>
		/// </summary>
		public CudaSparseCsru2csrInfo()
		{
			_info = new csru2csrInfo();
			res = CudaSparseNativeMethods.cusparseCreateCsru2csrInfo(ref _info);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateCsru2csrInfo", res));
			if (res != cusparseStatus.Success)
				throw new CudaSparseException(res);
		}
Exemplo n.º 2
0
 /// <summary>
 /// </summary>
 public CudaSparseCsru2csrInfo()
 {
     _info = new csru2csrInfo();
     res   = CudaSparseNativeMethods.cusparseCreateCsru2csrInfo(ref _info);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateCsru2csrInfo", res));
     if (res != cusparseStatus.Success)
     {
         throw new CudaSparseException(res);
     }
 }
		public static extern cusparseStatus cusparseZcsr2csru(cusparseContext handle,
                                               int m,
                                               int n,
                                               int nnz,
                                               cusparseMatDescr descrA,
                                               CUdeviceptr csrVal,
                                               CUdeviceptr csrRowPtr,
                                               CUdeviceptr csrColInd,
                                               csru2csrInfo  info,
                                               CUdeviceptr pBuffer);
		public static extern cusparseStatus cusparseZcsru2csr_bufferSizeExt(cusparseContext handle,
                                                             int m,
                                                             int n,
                                                             int nnz,
                                                             CUdeviceptr csrVal,
                                                             CUdeviceptr csrRowPtr,
                                                             CUdeviceptr csrColInd,
                                                             csru2csrInfo  info,
                                                             ref SizeT pBufferSizeInBytes);
		public static extern cusparseStatus cusparseDestroyCsru2csrInfo(csru2csrInfo info);
		public static extern cusparseStatus cusparseCreateCsru2csrInfo(ref csru2csrInfo info);