Skip to content

Commit

Permalink
Fix installation for amd gpu (#128)
Browse files Browse the repository at this point in the history
Summary:
Fix #127

The is_hip function has been moved to tritonbench.utils.env_utils.

Pull Request resolved: #128

Reviewed By: xuzhao9

Differential Revision: D68031969

Pulled By: FindHao

fbshipit-source-id: 229c6ab20953b893f2f1fc7da7663e6feddde53a
  • Loading branch information
FindHao authored and facebook-github-bot committed Jan 13, 2025
1 parent 9b7cca2 commit d83d5f0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
from tools.cuda_utils import CUDA_VERSION_MAP, DEFAULT_CUDA_VERSION
from tools.git_utils import checkout_submodules
from tools.python_utils import pip_install_requirements
from tools.torch_utils import is_hip

from tritonbench.utils.env_utils import is_hip


logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
Expand Down
1 change: 1 addition & 0 deletions tritonbench/operators/bf16xint16_gemm/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import triton
import triton.language as tl

from tritonbench.utils.env_utils import is_cuda


Expand Down
1 change: 1 addition & 0 deletions tritonbench/operators/fp8_gemm/persistent.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import triton
import triton.language as tl
import triton.tools.experimental_descriptor

from tritonbench.utils.env_utils import is_cuda

cublas = None
Expand Down
1 change: 1 addition & 0 deletions tritonbench/operators/fp8_gemm/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@

import triton
import triton.language as tl

from tritonbench.utils.env_utils import is_cuda


Expand Down
1 change: 1 addition & 0 deletions tritonbench/operators/gemm/persistent_matmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import torch
import triton
import triton.language as tl

from tritonbench.utils.env_utils import is_cuda
from tritonbench.utils.triton_op import IS_FBCODE

Expand Down

0 comments on commit d83d5f0

Please sign in to comment.