Example #1
0
        //      public void GetGraphStructure(ref nvgraphCSRTopology32I topologyData)
        //{
        //          nvgraphTopologyType type = nvgraphTopologyType.CSR32;
        //          res = NVGraphNativeMathods.nvgraphGetGraphStructure(_context, _descr, ref topologyData, ref type);
        //	Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphGetGraphStructure", res));
        //	if (res != nvgraphStatus.Success) throw new NVGraphException(res);
        //}

        //public void GetGraphStructure(ref nvgraphCSCTopology32I topologyData)
        //      {
        //          nvgraphTopologyType type = nvgraphTopologyType.CSC32;
        //          res = NVGraphNativeMathods.nvgraphGetGraphStructure(_context, _descr, ref topologyData, ref type);
        //	Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphGetGraphStructure", res));
        //	if (res != nvgraphStatus.Success) throw new NVGraphException(res);
        //}

        public void GetGraphStructure(nvgraphTopologyBase topologyData, ref nvgraphTopologyType type)
        {
            res = NVGraphNativeMathods.nvgraphGetGraphStructure(_context, _descr, topologyData, ref type);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphGetGraphStructure", res));
            if (res != nvgraphStatus.Success)
            {
                throw new NVGraphException(res);
            }
        }
Example #2
0
 public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
Example #3
0
 public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);
Example #4
0
 public static extern nvgraphStatus nvgraphConvertTopology(nvgraphContext handle,
                                                           nvgraphTopologyType srcTType, nvgraphTopologyBase srcTopology, CUdeviceptr srcEdgeData, ref cudaDataType dataType,
                                                           nvgraphTopologyType dstTType, nvgraphTopologyBase dstTopology, CUdeviceptr dstEdgeData);
 public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
 public static extern nvgraphStatus nvgraphConvertTopology(nvgraphContext handle,
                                 nvgraphTopologyType srcTType, nvgraphTopologyBase srcTopology, CUdeviceptr srcEdgeData, ref cudaDataType dataType,
                                 nvgraphTopologyType dstTType, nvgraphTopologyBase dstTopology, CUdeviceptr dstEdgeData);
 public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);