Skip to content

Issue with multiple GPUs #1

@shermanlo77

Description

@shermanlo77

Thanks for the code

We were experiencing issues running this code with multiple GPUs with the -p argument, where the stream does not match the device and the program deadlocks if it does match

I suggest the following:

  • The stream should be initialised after the device
  • pynvml.nvml.Init() should only be called once, rather than at every thread
  • Avoid race conditions for stop_flag

I've made those fixes on my fork. Let me know what you think and I'll be happy to make changes or a PR

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