Skip to content

Commit 937357d

Browse files
update nv pytorch windows on arm url (#4669)
1 parent 0ae600e commit 937357d

6 files changed

Lines changed: 15 additions & 209 deletions

File tree

‎.github/workflows/build_windows.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ jobs:
184184
- uses: ./test-infra/.github/actions/setup-windows
185185
with:
186186
cuda-version: ${{ env.CU_VERSION }}
187+
# TODO: When CUDA 13.4 is officially released, replace the prerelease installer URL below
188+
# with the official CUDA Toolkit distribution URL.
187189
- name: Install CUDA 13.4 toolkit with ARM64 target libraries
188190
if: inputs.cross-compile
189191
shell: powershell

‎MODULE.bazel‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ new_local_repository(
9797
path = "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.2/",
9898
)
9999

100-
# supposedly cuda 13.4 on windows x86 preview has everything required for cross compile for windows on arm
100+
# TODO: When CUDA 13.4 is officially released, switch this Windows ARM64 cross-build
101+
# sysroot from the preview toolkit to the official CUDA Toolkit distribution.
102+
# Supposedly cuda 13.4 on windows x86 preview has everything required for cross compile for windows on arm
101103
new_local_repository(
102104
name = "cuda_win_arm64",
103105
build_file = "@//third_party/cuda:BUILD",
@@ -177,10 +179,10 @@ http_archive(
177179
http_archive(
178180
name = "libtorch_win_arm64",
179181
build_file = "@//third_party/libtorch:BUILD",
180-
sha256 = "23862a93476cb038ffd26f7141cd476717d97b69b50074f2ab14036eb6093200",
182+
sha256 = "e72f2b05d062651d0ba1d44e189979f70c2faf7e879e925849f3c5716ab4319e",
181183
strip_prefix = "torch",
182184
type = "zip",
183-
urls = ["https://pypi.nvidia.com/nvtorch_oot_nightly/torch/torch-2.14.0.dev20260728%2Bcu134-cp313-cp313-win_arm64.whl"],
185+
urls = ["https://pypi.nvidia.com/nvtorch_oot_nightly/torch/torch-2.15.0.dev20260902%2Bcu134-cp313-cp313-win_arm64.whl"],
184186
)
185187

186188
http_archive(

‎package-lock.json‎

Lines changed: 0 additions & 199 deletions
This file was deleted.

‎packaging/prepare_windows_arm64_cross.ps1‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
param(
2-
[string] $PyTorchArtifact = "https://pypi.nvidia.com/nvtorch_oot_nightly/torch/torch-2.14.0.dev20260728%2Bcu134-cp313-cp313-win_arm64.whl",
2+
[string] $PyTorchArtifact = "https://pypi.nvidia.com/nvtorch_oot_nightly/torch/torch-2.15.0.dev20260902%2Bcu134-cp313-cp313-win_arm64.whl",
33
[string] $PythonArtifact = "https://api.nuget.org/v3-flatcontainer/pythonarm64/3.13.0/pythonarm64.3.13.0.nupkg",
44
[Parameter(Mandatory = $true)] [string] $TargetRoot,
55
[Parameter(Mandatory = $true)] [string] $CudaRoot,
@@ -8,7 +8,7 @@ param(
88

99
$ErrorActionPreference = "Stop"
1010

11-
$PyTorchArtifactSha256 = "23862a93476cb038ffd26f7141cd476717d97b69b50074f2ab14036eb6093200"
11+
$PyTorchArtifactSha256 = "e72f2b05d062651d0ba1d44e189979f70c2faf7e879e925849f3c5716ab4319e"
1212
$PythonArtifactSha256 = "f44428dc94e6f9c72cd69ad6436280784e6f9eed46a149641fee71866d3081f3"
1313

1414
$ArtifactTempRoot = $env:RUNNER_TEMP
@@ -71,6 +71,8 @@ if (-not (Test-Path -LiteralPath $cudaVersionFile -PathType Leaf)) {
7171
throw "CUDA version file is missing: $cudaVersionFile"
7272
}
7373
$cudaVersion = (Get-Content -LiteralPath $cudaVersionFile -Raw | ConvertFrom-Json).cuda.version
74+
# TODO: When CUDA 13.4 is officially released, update this preview-specific message
75+
# and the CI installer URL to use the official CUDA Toolkit distribution.
7476
if ($cudaVersion -notlike '13.4*') {
7577
throw "Windows ARM64 builds require CUDA 13.4 Preview; got '$cudaVersion'"
7678
}

‎setup.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,9 +1014,6 @@ def get_x86_64_requirements(base_requirements):
10141014
"tensorrt_rtx>=1.6.1.120,<1.7.0.0",
10151015
]
10161016
else:
1017-
requirements = requirements + [
1018-
"tensorrt>=11.2.1,<11.3.0",
1019-
]
10201017
cuda_version = torch.version.cuda
10211018
if cuda_version.startswith("12"):
10221019
# In cu12* envs, keep the CUDA-specific TensorRT wheels explicit so the default CUDA 13

‎toolchains/ci_workspaces/MODULE.bazel.tmpl‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ new_local_repository(
7676
path = "${CUDA_HOME}",
7777
)
7878

79+
# TODO: When CUDA 13.4 is officially released, switch this Windows ARM64 cross-build
80+
# sysroot from the preview toolkit to the official CUDA Toolkit distribution.
7981
# ARM64 target sysroot; this must contain lib/arm64/cudart.lib and must not
8082
# point at the x86_64 host CUDA installation above.
8183
new_local_repository(
@@ -199,10 +201,10 @@ new_local_repository(
199201
http_archive(
200202
name = "libtorch_win_arm64",
201203
build_file = "third_party/libtorch/BUILD",
202-
sha256 = "23862a93476cb038ffd26f7141cd476717d97b69b50074f2ab14036eb6093200",
204+
sha256 = "e72f2b05d062651d0ba1d44e189979f70c2faf7e879e925849f3c5716ab4319e",
203205
strip_prefix = "torch",
204206
type = "zip",
205-
urls = ["https://pypi.nvidia.com/nvtorch_oot_nightly/torch/torch-2.14.0.dev20260728%2Bcu134-cp313-cp313-win_arm64.whl"],
207+
urls = ["https://pypi.nvidia.com/nvtorch_oot_nightly/torch/torch-2.15.0.dev20260902%2Bcu134-cp313-cp313-win_arm64.whl"],
206208
)
207209

208210
new_local_repository(

0 commit comments

Comments
 (0)