(device_index: int | None = None)
| 25 | |
| 26 | |
| 27 | def num_compute_units(device_index: int | None = None) -> int: |
| 28 | props = torch.cuda.get_device_properties(device_index) |
| 29 | return props.multi_processor_count |
| 30 | |
| 31 | |
| 32 | _TRITON_TABLE_CACHE: dict[tuple[torch.device], tuple[torch.Tensor, torch.Tensor]] = {} |
no outgoing calls
no test coverage detected