Skip to content

Commit

Permalink
Merge pull request #25 from ROCm/arch_detect_fix
Browse files Browse the repository at this point in the history
cherry pick arch detect fix
  • Loading branch information
pnunna93 authored May 9, 2024
2 parents 5bada9b + ee04a7e commit aa088e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitsandbytes/cuda_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def get_rocm_gpu_arch() -> str:
try:
if torch.version.hip:
result = subprocess.run(["rocminfo"], capture_output=True, text=True)
match = re.search(r"Name:\s+gfx(\d+)", result.stdout)
match = re.search(r"Name:\s+gfx([a-zA-Z\d]+)", result.stdout)
if match:
return "gfx" + match.group(1)
else:
Expand Down

0 comments on commit aa088e6

Please sign in to comment.