Exemple #1
0
 public static extern nvgraphStatus nvgraphSrSpmv(nvgraphContext handle,
                                                  nvgraphGraphDescr descrG,
                                                  SizeT weight_index,
                                                  IntPtr alpha,
                                                  SizeT x_index,
                                                  IntPtr beta,
                                                  SizeT y_index,
                                                  nvgraphSemiring SR);
Exemple #2
0
 public static extern nvgraphStatus nvgraphPagerank(nvgraphContext handle,
                                                    nvgraphGraphDescr descrG,
                                                    SizeT weight_index,
                                                    IntPtr alpha,
                                                    SizeT bookmark_index,
                                                    int has_guess,
                                                    SizeT pagerank_index,
                                                    float tolerance,
                                                    int max_iter);
Exemple #3
0
        /// <summary>
        /// </summary>
        internal GraphDescriptor(nvgraphContext context)
        {
            _descr   = new nvgraphGraphDescr();
            _context = context;

            res = NVGraphNativeMathods.nvgraphCreateGraphDescr(_context, ref _descr);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphCreateGraphDescr", res));
            if (res != nvgraphStatus.Success)
            {
                throw new NVGraphException(res);
            }
        }
Exemple #4
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByVertex(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subvertices, SizeT numvertices);
Exemple #5
0
 public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);
Exemple #6
0
 public static extern nvgraphStatus nvgraphGetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr edgeData, SizeT setnum);
Exemple #7
0
 public static extern nvgraphStatus nvgraphAllocateEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes);
Exemple #8
0
 public static extern nvgraphStatus nvgraphGetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr vertexData, SizeT setnum);
 public static extern nvgraphStatus nvgraphExtractSubgraphByEdge( nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subedges , SizeT numedges);
 public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);
Exemple #11
0
 public static extern nvgraphStatus nvgraphSssp(nvgraphContext handle,
                                                nvgraphGraphDescr descrG,
                                                SizeT weight_index,
                                                ref int source_vert,
                                                SizeT sssp_index);
 public static extern nvgraphStatus nvgraphCreateGraphDescr(nvgraphContext handle, ref nvgraphGraphDescr descrG);
 public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
 public static extern nvgraphStatus nvgraphSetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr vertexData, SizeT setnum);
 public static extern nvgraphStatus nvgraphSetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr edgeData, SizeT setnum);
 public static extern nvgraphStatus nvgraphPagerank(nvgraphContext handle,
                            nvgraphGraphDescr descrG,
                            SizeT weight_index,
                            IntPtr alpha,
                            SizeT bookmark_index,
                            int has_guess,
                            SizeT pagerank_index,
                            float tolerance,
                            int max_iter );
 public static extern nvgraphStatus nvgraphExtractSubgraphByVertex(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subvertices, SizeT numvertices );
Exemple #18
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByEdge(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subedges, SizeT numedges);
Exemple #19
0
 public static extern nvgraphStatus nvgraphDestroyGraphDescr(nvgraphContext handle, nvgraphGraphDescr descrG);
 public static extern nvgraphStatus nvgraphSrSpmv(nvgraphContext handle,
                          nvgraphGraphDescr descrG,
                          SizeT weight_index,
                          IntPtr alpha,
                          SizeT x_index,
                          IntPtr beta,
                          SizeT y_index,
                          nvgraphSemiring SR);
 public static extern nvgraphStatus nvgraphDestroyGraphDescr(nvgraphContext handle, nvgraphGraphDescr descrG);
Exemple #22
0
 public static extern nvgraphStatus nvgraphWidestPath(nvgraphContext handle,
                                                      nvgraphGraphDescr descrG,
                                                      SizeT weight_index,
                                                      ref int source_vert,
                                                      SizeT widest_path_index);
 public static extern nvgraphStatus nvgraphSssp(nvgraphContext handle,
                        nvgraphGraphDescr descrG,
                        SizeT weight_index,
                        ref int source_vert,
                        SizeT sssp_index);
Exemple #24
0
 public static extern nvgraphStatus nvgraphCreateGraphDescr(nvgraphContext handle, ref nvgraphGraphDescr descrG);
 public static extern nvgraphStatus nvgraphWidestPath(nvgraphContext handle,
                           nvgraphGraphDescr descrG,
                           SizeT weight_index,
                           ref int source_vert,
                           SizeT widest_path_index);
Exemple #26
0
 public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
 public static extern nvgraphStatus nvgraphAllocateVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes);