dmlc / dgl

Python package built to ease deep learning on graph, on top of existing DL frameworks.
http://dgl.ai
Apache License 2.0
13.36k stars 3k forks source link

[GraphBolt] Make `PartitionedCachePolicy` thread safe. #7561

Closed mfbalin closed 1 month ago

mfbalin commented 1 month ago

Description

In our read_async pipeline, multiple async threads can try to access the cache policy so we protect it with a mutex. Otherwise the code crashes horribly due to data races. Needed by #7559.

Checklist

Please feel free to remove inapplicable items for your PR.

Changes

dgl-bot commented 1 month ago

To trigger regression tests:

dgl-bot commented 1 month ago

Commit ID: c0364006745f3ba6c0c8b8b2483342c91da82f49

Build ID: 1

Status: ⚪️ CI test cancelled due to overrun.

Report path: link

Full logs path: link

dgl-bot commented 1 month ago

Commit ID: f071bf399af62c45622d24124376b85cbb3d307d

Build ID: 2

Status: ✅ CI test succeeded.

Report path: link

Full logs path: link