Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
petrex committed Jan 9, 2025
1 parent c678cb0 commit 1f3b773
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ def get_extensions():
if IS_ROCM and use_cuda:
# Add ROCm GPU architecture check
gpu_arch = torch.cuda.get_device_properties(0).name
if gpu_arch != 'gfx942':
if gpu_arch != "gfx942":
print(f"Warning: Unsupported ROCm GPU architecture: {gpu_arch}")
print("Currently only gfx942 is supported. Skipping compilation of ROCm extensions")
print(
"Currently only gfx942 is supported. Skipping compilation of ROCm extensions"
)
return None
sources += hip_sources

Expand Down

0 comments on commit 1f3b773

Please sign in to comment.