We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4e8c30 commit c678cb0Copy full SHA for c678cb0
setup.py
@@ -146,6 +146,12 @@ def get_extensions():
146
147
# TOOD: Remove this and use what CUDA has once we fix all the builds.
148
if IS_ROCM and use_cuda:
149
+ # Add ROCm GPU architecture check
150
+ gpu_arch = torch.cuda.get_device_properties(0).name
151
+ if gpu_arch != 'gfx942':
152
+ print(f"Warning: Unsupported ROCm GPU architecture: {gpu_arch}")
153
+ print("Currently only gfx942 is supported. Skipping compilation of ROCm extensions")
154
+ return None
155
sources += hip_sources
156
157
if len(sources) == 0:
0 commit comments