mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Revert "has_triton
: Use the device interface for detecting Triton availability (#139171)"
This reverts commit 48bfe9afc70a98addd5aa738bf501c029e4a9285. Reverted https://github.com/pytorch/pytorch/pull/139171 on behalf of https://github.com/masnesral due to Performance regression for huggingface ([comment](https://github.com/pytorch/pytorch/pull/139171#issuecomment-2868939790))
This commit is contained in:
@ -8,7 +8,7 @@ from typing import Optional
|
||||
|
||||
import torch
|
||||
from torch._dynamo.utils import warn_once
|
||||
from torch.utils._triton import has_triton_package
|
||||
from torch.utils._triton import has_triton
|
||||
|
||||
from ._triton_ops_meta import get_meta
|
||||
|
||||
@ -1323,7 +1323,7 @@ def bsr_dense_addmm(
|
||||
return out_backup
|
||||
|
||||
|
||||
if has_triton_package():
|
||||
if has_triton():
|
||||
import triton
|
||||
import triton.language as tl
|
||||
|
||||
|
Reference in New Issue
Block a user