You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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().
The text was updated successfully, but these errors were encountered:
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().
The text was updated successfully, but these errors were encountered: