Skip to content

called by multiprocessing[suggestion] #1

@wenhel

Description

@wenhel

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions