Skip to content

Commit

Permalink
Update test_bottleneck_module.py - Skip BottleNeck Peer Memory Test i…
Browse files Browse the repository at this point in the history
…f Not Supported (#1769)

If hw configuration disabled peer memory access, skip the bottleneck tests.
  • Loading branch information
nWEIdia committed Jan 18, 2024
1 parent 48c4894 commit 6c8f384
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apex/contrib/test/bottleneck/test_bottleneck_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def test_bottleneck_without_peer_memory(self) -> None:
bt = apply_to_different_bottleneck(gt, spatial_bottleneck)
self.assertEqual(gt, bt, **self.fp16_tolerance)

@unittest.skipIf(not torch.cuda.can_device_access_peer(0,1), "peer memory access not supported")
def test_bottleneck_with_peer_memory(self) -> None:

explicit_nhwc: bool = True
Expand Down

0 comments on commit 6c8f384

Please sign in to comment.