Skip to content

Parallel random graph construction incorrect #10

@ehein6

Description

@ehein6

Parallel random graph construction in GraphBIG is not implemented correctly.

C++ standard library containers like vector, list, and unordered_map are not thread-safe. Calling push_back concurrently on the same data structure without synchronization is leading to data corruption in this benchmark. Locking each vertex before adding an edge should solve the problem, but this will have a significant impact on performance.

See #7 for a demonstration of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions