Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need workaround to support multiprocess CUDA tensor sharing on Jetson Platforms #60401

Open
shmsong opened this issue Jun 21, 2021 · 1 comment
Labels
feature A request for a proper, new feature. module: multiprocessing Related to torch.multiprocessing triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Comments

@shmsong
Copy link
Contributor

shmsong commented Jun 21, 2021

馃殌 Feature

A different method for sharing CUDA Tensors across processes on Jetson platforms is needed.

CUDA unified addressing based IPC functionality isn't yet supported on Tegra platforms

https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__DEVICE.html#group__CUDART__DEVICE_1g8a37f7dfafaca652391d0758b3667539

and current implementation of THPStorage depends on it, making existing dataloader implementations not compatible on Jetson.

Motivation

Current data loader test cannot pass without the requested feature. Setting multiprocessing.sharing_strategy only affects CPU tensors and doesn't go around this problem.

$ python test_dataloader.py -v -k test_multiprocessing_contexts

gives

cuda runtime error (801) : operation not supported

@VitalyFedyunin VitalyFedyunin added feature A request for a proper, new feature. module: multiprocessing Related to torch.multiprocessing triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Jun 24, 2021
@rahulswa08
Copy link

Is this issue resolved? Does any pytorch version support multiprocessing on Jetson platform?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A request for a proper, new feature. module: multiprocessing Related to torch.multiprocessing triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

No branches or pull requests

3 participants