Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
            }
        }
Exemplo n.º 4
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByVertex(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subvertices, SizeT numvertices);
Exemplo n.º 5
0
 public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);
Exemplo n.º 6
0
 public static extern nvgraphStatus nvgraphGetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr edgeData, SizeT setnum);
Exemplo n.º 7
0
 public static extern nvgraphStatus nvgraphAllocateEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes);
Exemplo n.º 8
0
 public static extern nvgraphStatus nvgraphGetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr vertexData, SizeT setnum);
Exemplo n.º 9
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByEdge( nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subedges , SizeT numedges);
Exemplo n.º 10
0
 public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);
Exemplo n.º 11
0
 public static extern nvgraphStatus nvgraphSssp(nvgraphContext handle,
                                                nvgraphGraphDescr descrG,
                                                SizeT weight_index,
                                                ref int source_vert,
                                                SizeT sssp_index);
Exemplo n.º 12
0
 public static extern nvgraphStatus nvgraphCreateGraphDescr(nvgraphContext handle, ref nvgraphGraphDescr descrG);
Exemplo n.º 13
0
 public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
Exemplo n.º 14
0
 public static extern nvgraphStatus nvgraphSetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr vertexData, SizeT setnum);
Exemplo n.º 15
0
 public static extern nvgraphStatus nvgraphSetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr edgeData, SizeT setnum);
Exemplo n.º 16
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 );
Exemplo n.º 17
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByVertex(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subvertices, SizeT numvertices );
Exemplo n.º 18
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByEdge(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subedges, SizeT numedges);
Exemplo n.º 19
0
 public static extern nvgraphStatus nvgraphDestroyGraphDescr(nvgraphContext handle, nvgraphGraphDescr descrG);
Exemplo n.º 20
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);
Exemplo n.º 21
0
 public static extern nvgraphStatus nvgraphDestroyGraphDescr(nvgraphContext handle, nvgraphGraphDescr descrG);
Exemplo n.º 22
0
 public static extern nvgraphStatus nvgraphWidestPath(nvgraphContext handle,
                                                      nvgraphGraphDescr descrG,
                                                      SizeT weight_index,
                                                      ref int source_vert,
                                                      SizeT widest_path_index);
Exemplo n.º 23
0
 public static extern nvgraphStatus nvgraphSssp(nvgraphContext handle,
                        nvgraphGraphDescr descrG,
                        SizeT weight_index,
                        ref int source_vert,
                        SizeT sssp_index);
Exemplo n.º 24
0
 public static extern nvgraphStatus nvgraphCreateGraphDescr(nvgraphContext handle, ref nvgraphGraphDescr descrG);
Exemplo n.º 25
0
 public static extern nvgraphStatus nvgraphWidestPath(nvgraphContext handle,
                           nvgraphGraphDescr descrG,
                           SizeT weight_index,
                           ref int source_vert,
                           SizeT widest_path_index);
Exemplo n.º 26
0
 public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
Exemplo n.º 27
0
 public static extern nvgraphStatus nvgraphAllocateVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes);