Skip to content

Ignore the 'CUDA_VISIBLE_DEVICE' setting after importing Monai in the latest Pytorch #7575

Closed

Description

@KumoLiu
FAIL: test_visible_devices (tests.test_set_visible_devices.TestVisibleDevices)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/MONAI/tests/test_set_visible_devices.py", line 37, in test_visible_devices
    self.assertEqual(num_gpus_before, num_gpus_after)
AssertionError: 0 != 2

The root cause could be issues listed here:
https://github.com/pytorch/pytorch/issues/122085

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions