Skip to content

Cannot convert ‘graph*’ to ‘dGraph*’ #1

@foertter

Description

@foertter

Seems there's an issue with malloc line of G in main. Converting this to dGraph breaks more things down the line.

[ 81%] Built target driverForMatrixReordering /home/Development/Apps/grappolo/gpu_graph/gpu_main.cpp: In function ‘int main(int, char**)’: /home/Development/Apps/grappolo/gpu_graph/gpu_main.cpp:134:40: error: cannot convert ‘graph*’ to ‘dGraph*’ 134 | case 7: parse_DirectedEdgeList(G, inFile); break; | ^ | | | graph* In file included from /home/Development/Apps/grappolo/gpu_graph/gpu_main.cpp:97: /home/Development/Apps/grappolo/DefineStructure/input_output.h:12:37: note: initializing argument 1 of ‘void parse_DirectedEdgeList(dGraph*, char*)’ 12 | void parse_DirectedEdgeList(dGraph *G, char *fileName); //Directed graph | ~~~~~~~~^ make[2]: *** [gpu_graph/CMakeFiles/gpu_graph.dir/build.make:9415: gpu_graph/CMakeFiles/gpu_graph.dir/gpu_main.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:329: gpu_graph/CMakeFiles/gpu_graph.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions