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.
2 parents 3fe260e + 8d8f79e commit 30653f5Copy full SHA for 30653f5
ramalama/common.py
@@ -433,6 +433,10 @@ def check_ascend() -> Literal["cann"] | None:
433
434
435
def check_rocm_amd() -> Literal["hip"] | None:
436
+ if is_arm():
437
+ # ROCm is not available for arm64, use Vulkan instead
438
+ return None
439
+
440
gpu_num = 0
441
gpu_bytes = 0
442
for i, (np, props) in enumerate(amdkfd.gpus()):
@@ -461,6 +465,10 @@ def check_rocm_amd() -> Literal["hip"] | None:
461
465
return None
462
466
463
467
468
+def is_arm() -> bool:
469
+ return platform.machine() in ('arm64', 'aarch64')
470
471
464
472
def check_intel() -> Literal["intel"] | None:
473
igpu_num = 0
474
# Device IDs for select Intel GPUs. See: https://dgpu-docs.intel.com/devices/hardware-table.html
0 commit comments