Skip to content

Commit bc588ab

Browse files
Alternate URL for aarch64 libtorch (#195)
* Added aarch64 libtorch. * Updated versions in anticipation.
1 parent df24066 commit bc588ab

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

openequivariance/CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@ find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module)
66
# Download LibTorch
77
include(FetchContent)
88

9+
if (AARCH64 OR CMAKE_SYSTEM_PROCESSOR MATCHES "(arm)|(ARM)|(aarch64)")
10+
message(STATUS "Targeting ARM architecture (AARCH64 override or processor match)")
11+
set(LIBTORCH_URL "https://github.com/PASSIONLab/libtorch_aarch64/raw/refs/heads/main/pkg-libtorch.tar.zst")
12+
else()
13+
message(STATUS "Did not match arm/aarch64, performing x86 install")
14+
set(LIBTORCH_URL "https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.10.0%2Bcpu.zip")
15+
endif()
16+
917
FetchContent_Declare(
1018
libtorch
11-
URL "https://download.pytorch.org/libtorch/cpu/libtorch-shared-with-deps-2.10.0%2Bcpu.zip"
19+
URL "${LIBTORCH_URL}"
1220
)
1321

1422
message(STATUS "Downloading LibTorch...")

openequivariance/pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "openequivariance"
7-
version = "0.6.5"
7+
version = "0.6.6"
88
authors = [
99
{ name="Austin Glover" },
1010
{ name="Vivek Bharadwaj" },
@@ -75,3 +75,6 @@ addopts = [
7575

7676
[tool.ruff]
7777
lint.ignore = ["E741"]
78+
79+
[tool.scikit-build.cmake.define]
80+
AARCH64 = {env="AARCH64", default="0"}

openequivariance_extjax/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "scikit_build_core.build"
88

99
[project]
1010
name = "openequivariance_extjax"
11-
version = "0.6.5"
11+
version = "0.6.6"
1212

1313
authors = [
1414
{ name="Austin Glover" },

0 commit comments

Comments
 (0)