[CI/Build][AMD] Install triton_kernels via CMake (#50328)
Signed-off-by: Ryan Rock <ryan.rock@amd.com> Co-authored-by: Andreas Karatzas <akaratza@amd.com> Co-authored-by: depthfirst-app[bot] <184448029+depthfirst-app[bot]@users.noreply.github.com> Co-authored-by: root <root@smci355-ccs-aus-m11-05.cs-aus.dcgpu>
This commit is contained in:
co-authored by
Andreas Karatzas
depthfirst-app[bot] <184448029+depthfirst-app[bot]@users.noreply.github.com>
root
parent
4689c7dd61
commit
6724051c57
@@ -80,28 +80,15 @@ def _patch_make_bitmatrix_metadata() -> None:
|
||||
import triton.language as tl
|
||||
|
||||
try:
|
||||
if current_platform.is_rocm():
|
||||
from triton_kernels.tensor_details import bitmatrix as _bm
|
||||
from triton_kernels.tensor_details.bitmatrix import (
|
||||
BitmatrixMetadata,
|
||||
_keyed_add,
|
||||
cdiv,
|
||||
)
|
||||
from triton_kernels.tensor_details.bitmatrix_details.sum_bitmatrix_rows import ( # noqa: E501
|
||||
sum_bitmatrix_rows,
|
||||
)
|
||||
else:
|
||||
from vllm.third_party.triton_kernels.tensor_details import (
|
||||
bitmatrix as _bm,
|
||||
)
|
||||
from vllm.third_party.triton_kernels.tensor_details.bitmatrix import (
|
||||
BitmatrixMetadata,
|
||||
_keyed_add,
|
||||
cdiv,
|
||||
)
|
||||
from vllm.third_party.triton_kernels.tensor_details.bitmatrix_details.sum_bitmatrix_rows import ( # noqa: E501
|
||||
sum_bitmatrix_rows,
|
||||
)
|
||||
from triton_kernels.tensor_details import bitmatrix as _bm
|
||||
from triton_kernels.tensor_details.bitmatrix import (
|
||||
BitmatrixMetadata,
|
||||
_keyed_add,
|
||||
cdiv,
|
||||
)
|
||||
from triton_kernels.tensor_details.bitmatrix_details.sum_bitmatrix_rows import ( # noqa: E501
|
||||
sum_bitmatrix_rows,
|
||||
)
|
||||
except ImportError:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user