`has_triton`: Use the device interface for detecting Triton availability (#139171)
Summary:
This PR replaces the `has_triton()` global method which was previously used for this task.
X-link: https://github.com/pytorch/pytorch/pull/139171
Approved by: https://github.com/jansel, https://github.com/shink
Reviewed By: huydhn
Differential Revision: D74338720
fbshipit-source-id: 27106df937bbdea2da1f4911ffffcfae056f844d
Author
generatedunixname499836121