Пример #1
0
		/// <summary>
		/// </summary>
		public CudaSparseColorInfo()
		{
			_info = new cusparseColorInfo();
			res = CudaSparseNativeMethods.cusparseCreateColorInfo(ref _info);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateColorInfo", res));
			if (res != cusparseStatus.Success)
				throw new CudaSparseException(res);
		}
Пример #2
0
 /// <summary>
 /// </summary>
 public CudaSparseColorInfo()
 {
     _info = new cusparseColorInfo();
     res   = CudaSparseNativeMethods.cusparseCreateColorInfo(ref _info);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cusparseCreateColorInfo", res));
     if (res != cusparseStatus.Success)
     {
         throw new CudaSparseException(res);
     }
 }
		public static extern cusparseStatus cusparseZcsrcolor(cusparseContext handle,
                                               int m, 
                                               int nnz,
                                               cusparseMatDescr descrA, 
                                               CUdeviceptr csrSortedValA, 
                                               CUdeviceptr csrSortedRowPtrA, 
                                               CUdeviceptr csrSortedColIndA,
                                               CUdeviceptr fractionToColor,
											   CUdeviceptr ncolors,
											   CUdeviceptr coloring,
											   CUdeviceptr reordering,
                                               cusparseColorInfo info);
		public static extern cusparseStatus cusparseDestroyColorInfo(cusparseColorInfo info);
		public static extern cusparseStatus cusparseCreateColorInfo(ref cusparseColorInfo info);
Пример #6
0
 public static extern cusparseStatus cusparseSetColorAlgs(cusparseColorInfo info, cusparseColorAlg alg);