Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Inductor] Properly package target info for triton.compile (#125553)
Triton updated the interface for `triton.compile` triton-lang/triton@5162346 The `target` argument to compile needs to be wrapped in a `GPUTarget` object. Without proper wrapping, we hit an assert in `compile`. If that assert is removed, Triton attempts to read device info from Torch while inside a torch thread, which hits an in bad fork assert. This change is required for compatibility with latest commits in Triton. The implementation is backwards compatible, so existing versions of Triton that work now continue to work. Re-submitting this after #125241 was reverted due to an unrelated CI issue. Pull Request resolved: #125553 Approved by: https://github.com/huydhn
- Loading branch information