Skip to content

Commit

Permalink
also return aarch64 on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Oct 9, 2024
1 parent 2bf78f1 commit 7ef77c7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rapids_build_backend/impls.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,20 @@ def _get_backend(build_backend):


@lru_cache
def _get_arch():
def _get_arch() -> str:
"""Get the arch of the current machine.
Returns
-------
str
The arch (e.g. "x86_64" or "aarch64")
"""
return platform.machine()
plat = platform.machine()
# RAPIDS projects all use "aarch64" to indicate arm architectures,
# but arm some systems (like the M1/M2/M3 Macs) report "arm64"
if plat == "arm64":
return "aarch64"
return plat


@lru_cache
Expand Down

0 comments on commit 7ef77c7

Please sign in to comment.