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

called by multiprocessing[suggestion] #1

Open
wenhel opened this issue Aug 28, 2017 · 1 comment
Open

called by multiprocessing[suggestion] #1

wenhel opened this issue Aug 28, 2017 · 1 comment

Comments

@wenhel
Copy link

wenhel commented Aug 28, 2017

Hi, I am trying to use the code for a multiprocessing job.
The major task is that there are several processes and some of them might call the gpu_manager at a time. The problem is the shared unspecified_gpu (dict) need to be locked when calling by one process. I suggest adding a lock in your code to make sure it is working in multiprocessing task.

Actually, the lock should be shared by gpu_manager and the other processes. It can be claimed as global variable in init().

@QuantumLiu
Copy link
Owner

Thank you for this issue,i will try to fix it.

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