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] Avoid initializing `CUDAContext` in DataLoader workers. #7560

Closed mfbalin closed 1 month ago

mfbalin commented 1 month ago

Description

When torch::Tensor::is_pinned() is called, it initializes the CUDA context. If the process is a worker, is_pinned should not even call that function and return false. #7559 requires it for the tests.

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: 735876648a36da461f089b6a789289d35024a61b

Build ID: 1

Status: ✅ CI test succeeded.

Report path: link

Full logs path: link