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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I expect to start the process with torch spawn method and import boxx #14

Open
yanziwei opened this issue Mar 20, 2022 · 1 comment
Open

Comments

@yanziwei
Copy link

yanziwei commented Mar 20, 2022

I minimally reproduced the startup process:

import torch
from boxx import *

mp = torch.multiprocessing.get_start_method(
            allow_none=True)
print(mp)

I expect to get None or spawn
The actual got the fork

Background:

self.sampler = DataLoader.Sampler()
mp_start_method = torch.multiprocessing.get_start_method(
            allow_none=True)
if mp_start_method is None:
            torch.multiprocessing.set_start_method('spawn')

I expect CUDA tensors to be shared between different processes.

@DIYer22
Copy link
Owner

DIYer22 commented Mar 20, 2022

神奇的 bug, 我毫无头绪 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants