コード例 #1
0
ファイル: GraphContext.cs プロジェクト: kunzmi/managedCuda
        /// <summary>
        /// </summary>
        public GraphContext()
        {
            _context = new nvgraphContext();

            res = NVGraphNativeMathods.nvgraphCreate(ref _context);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphCreate", res));
            if (res != nvgraphStatus.Success) throw new NVGraphException(res);
        }
コード例 #2
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);
コード例 #3
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);
コード例 #4
0
        /// <summary>
        /// </summary>
        public GraphContext()
        {
            _context = new nvgraphContext();

            res = NVGraphNativeMathods.nvgraphCreate(ref _context);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphCreate", res));
            if (res != nvgraphStatus.Success)
            {
                throw new NVGraphException(res);
            }
        }
コード例 #5
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);
            }
        }
コード例 #6
0
 public static extern nvgraphStatus nvgraphGetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr vertexData, SizeT setnum);
コード例 #7
0
 public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);
コード例 #8
0
 public static extern nvgraphStatus nvgraphAllocateEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes);
コード例 #9
0
 public static extern nvgraphStatus nvgraphDestroy(nvgraphContext handle);
コード例 #10
0
 public static extern nvgraphStatus nvgraphConvertTopology(nvgraphContext handle,
                                 nvgraphTopologyType srcTType, nvgraphTopologyBase srcTopology, CUdeviceptr srcEdgeData, ref cudaDataType dataType,
                                 nvgraphTopologyType dstTType, nvgraphTopologyBase dstTopology, CUdeviceptr dstEdgeData);
コード例 #11
0
 public static extern nvgraphStatus nvgraphGetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr edgeData, SizeT setnum);
コード例 #12
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByEdge(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subedges, SizeT numedges);
コード例 #13
0
 public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
コード例 #14
0
 public static extern nvgraphStatus nvgraphSssp(nvgraphContext handle,
                                                nvgraphGraphDescr descrG,
                                                SizeT weight_index,
                                                ref int source_vert,
                                                SizeT sssp_index);
コード例 #15
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 );
コード例 #16
0
 public static extern nvgraphStatus nvgraphSetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr edgeData, SizeT setnum);
コード例 #17
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByVertex(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subvertices, SizeT numvertices );
コード例 #18
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByEdge( nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subedges , SizeT numedges);
コード例 #19
0
 public static extern nvgraphStatus nvgraphDestroyGraphDescr(nvgraphContext handle, nvgraphGraphDescr descrG);
コード例 #20
0
 public static extern nvgraphStatus nvgraphConvertTopology(nvgraphContext handle,
                                                           nvgraphTopologyType srcTType, nvgraphTopologyBase srcTopology, CUdeviceptr srcEdgeData, ref cudaDataType dataType,
                                                           nvgraphTopologyType dstTType, nvgraphTopologyBase dstTopology, CUdeviceptr dstEdgeData);
コード例 #21
0
 public static extern nvgraphStatus nvgraphCreate(ref nvgraphContext handle);
コード例 #22
0
 public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);
コード例 #23
0
 public static extern nvgraphStatus nvgraphDestroy(nvgraphContext handle);
コード例 #24
0
 public static extern nvgraphStatus nvgraphExtractSubgraphByVertex(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subvertices, SizeT numvertices);
コード例 #25
0
 public static extern nvgraphStatus nvgraphDestroyGraphDescr(nvgraphContext handle, nvgraphGraphDescr descrG);
コード例 #26
0
 public static extern nvgraphStatus nvgraphSetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr vertexData, SizeT setnum);
コード例 #27
0
 public static extern nvgraphStatus nvgraphCreateGraphDescr(nvgraphContext handle, ref nvgraphGraphDescr descrG);
コード例 #28
0
 public static extern nvgraphStatus nvgraphWidestPath(nvgraphContext handle,
                                                      nvgraphGraphDescr descrG,
                                                      SizeT weight_index,
                                                      ref int source_vert,
                                                      SizeT widest_path_index);
コード例 #29
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);
コード例 #30
0
 public static extern nvgraphStatus nvgraphCreate(ref nvgraphContext handle);
コード例 #31
0
 public static extern nvgraphStatus nvgraphSssp(nvgraphContext handle,
                        nvgraphGraphDescr descrG,
                        SizeT weight_index,
                        ref int source_vert,
                        SizeT sssp_index);
コード例 #32
0
 public static extern nvgraphStatus nvgraphCreateGraphDescr(nvgraphContext handle, ref nvgraphGraphDescr descrG);
コード例 #33
0
 public static extern nvgraphStatus nvgraphWidestPath(nvgraphContext handle,
                           nvgraphGraphDescr descrG,
                           SizeT weight_index,
                           ref int source_vert,
                           SizeT widest_path_index);
コード例 #34
0
 public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
コード例 #35
0
 public static extern nvgraphStatus nvgraphAllocateVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes);