Automatically detect CUDA if it isn't set and default to upstream torch.cuda number of devices#6605
Automatically detect CUDA if it isn't set and default to upstream torch.cuda number of devices#6605
Conversation
|
I manually verified that this worked on a GPU VM. |
will-cromar
left a comment
There was a problem hiding this comment.
Nice! LGTM as long as test works in our CI
|
I think @ysiraichi updated our CI to compile pytorch with CUDA as well. |
|
Was failing CI/CD because the test harness explicitly sets PJRT_DEVICE. However, now that it's set, and this test only checks when the environment variable isn't set, the test doesn't actually run. Should I update CI/CD to not set GPU devices by default in a follow up PR? @will-cromar for insight? Thanks! |
When In you test, feel free to just unset |
…ch.cuda number of devices (pytorch#6605)
No description provided.