| 642 | # collisions caused by combining sample and tile IDs with arbitrary |
| 643 | # decimal multipliers. |
| 644 | return -tl.log(-tl.log(tl.rand(seed + sample_idx, noise_offsets))) |
| 645 | |
| 646 | |
| 647 | @lru_cache(maxsize=1) |
| 648 | def set_torch_allocator_for_tma_descriptors_cached(): |
| 649 | """From https://triton-lang.org/main/python-api/generated/triton.language.make_tensor_descriptor.html""" |
| 650 | # TMA descriptors require a global memory allocation |
| 651 | triton.set_allocator(alloc_on_cuda) |
| 652 |
nothing calls this directly
no outgoing calls
no test coverage detected