(min_arch=7)
| 16 | |
| 17 | |
| 18 | def skip_on_arch(min_arch=7): |
| 19 | if get_accelerator().device_name() == 'cuda': |
| 20 | if torch.cuda.get_device_capability()[0] < min_arch: #ignore-cuda |
| 21 | pytest.skip(f"needs higher compute capability than {min_arch}") |
| 22 | else: |
| 23 | assert is_current_accelerator_supported() |
| 24 | return |
| 25 | |
| 26 | |
| 27 | def skip_on_cuda(valid_cuda): |
searching dependent graphs…