Skip to content

little bug #4

@kevinsouthxu

Description

@kevinsouthxu

After running with a simple graph,a segmentation fault occurred
check the graph.cu I found that in line 156

                        uint *outDegreeCounter  = new uint[num_nodes];
			uint location;  
			for(uint i=0; i<num_edges; i++)
			{
				location = nodePointer[edges[i].source] + outDegreeCounter[edges[i].source];
				edgeList[location].end = edges[i].end;
				//if(isWeighted)
				//	edgeList[location].w8 = edges[i].w8;
				outDegreeCounter[edges[i].source]++;  
			}

The outDegreeCounter array should be initialized

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions