Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/scripts/build-cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [[ -v CUDA_TARGETS ]]; then
build_capability="${CUDA_TARGETS}"
elif [ "${RUNNER_ARCH}" = "ARM64" ]; then
if [ "${RUNNER_OS}" = "Windows" ]; then
build_capability="121"
build_capability="100;120;121"
else
build_capability="75;80;90"

Expand Down
26 changes: 19 additions & 7 deletions .github/scripts/install-cuda-woa.ps1
Original file line number Diff line number Diff line change
@@ -1,22 +1,34 @@
# Installs the CUDA 13.4 preview toolkit for Windows arm64.
# Installs CUDA Toolkit 13.4 or 13.5 for Windows ARM64.
param(
[Parameter(Mandatory = $true)]
[ValidateSet("13.4.3", "13.5.0")]
[string]$CudaVersion
)

$ErrorActionPreference = "Stop"

$url = "https://packages.nvidia.com/prerelease/cuda/13.4.0/local_installers/cuda_13.4.0_windows_arm64.exe"
$versionParts = $CudaVersion.Split(".")
$cudaShortVersion = "$($versionParts[0]).$($versionParts[1])"
# The CCCL subpackage is named "thrust" through 13.4 and "cccl" from 13.5 on.
$ccclComponent = if ($cudaShortVersion -eq "13.4") { "thrust" } else { "cccl" }
$url = "https://developer.download.nvidia.com/compute/cuda/$CudaVersion/local_installers/cuda_${CudaVersion}_windows_arm64.exe"
$subPackages = @(
"nvcc_13.4", "crt_13.4", "nvvm_13.4", "nvptxcompiler_13.4",
"cudart_13.4", "cublas_13.4", "cublas_dev_13.4", "thrust_13.4"
"nvcc_$cudaShortVersion", "crt_$cudaShortVersion", "nvvm_$cudaShortVersion", "nvptxcompiler_$cudaShortVersion",
"cudart_$cudaShortVersion", "cublas_$cudaShortVersion", "cublas_dev_$cudaShortVersion",
"${ccclComponent}_$cudaShortVersion"
)
$cudaPath = "$env:ProgramFiles\NVIDIA GPU Computing Toolkit\CUDA\v13.4"
$installer = Join-Path $env:RUNNER_TEMP "cuda_13.4.0.exe"
$cudaPath = "$env:ProgramFiles\NVIDIA GPU Computing Toolkit\CUDA\v$cudaShortVersion"
$installer = Join-Path $env:RUNNER_TEMP "cuda_${CudaVersion}_windows_arm64.exe"

Write-Host "Downloading $url"
curl.exe --fail --location --retry 3 --output $installer $url
if ($LASTEXITCODE -ne 0) { throw "Failed to download $url" }

Write-Host "Installing subpackages: $($subPackages -join ' ')"
$proc = Start-Process -FilePath $installer -ArgumentList (@("-s", "-n") + $subPackages) -Wait -PassThru
Remove-Item $installer -Force
if ($proc.ExitCode -ne 0) { throw "CUDA installer exited with code $($proc.ExitCode)" }
# The installer can keep a handle on its own executable after exiting, so cleanup is best-effort.
Remove-Item $installer -Force -ErrorAction SilentlyContinue

if (-not (Test-Path "$cudaPath\bin\nvcc.exe")) { throw "nvcc not found under $cudaPath" }

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
if-no-files-found: error

##
# This job matrix builds the CUDA versions of the libraries for platforms that support CUDA (Linux x64/aarch64 + Windows x64)
# This job matrix builds the CUDA versions of the libraries for platforms that support CUDA (Linux x64/aarch64 + Windows x64/ARM64)
##
build-cuda:
strategy:
Expand All @@ -62,7 +62,9 @@ jobs:
["11.8.0", "12.1.1", "12.4.1", "12.6.3", "12.8.1", "13.0.2", "13.2.0"]
include:
- os: windows-11-vs2026-arm
cuda_version: "13.4.0"
cuda_version: "13.4.3"
- os: windows-11-vs2026-arm
cuda_version: "13.5.0"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand All @@ -80,7 +82,7 @@ jobs:
log-file-suffix: ${{ runner.os }}-${{ runner.arch }}-${{matrix.cuda_version}}.txt
- name: Install CUDA Toolkit (WoA)
if: runner.os == 'Windows' && runner.arch == 'ARM64'
run: ./.github/scripts/install-cuda-woa.ps1
run: ./.github/scripts/install-cuda-woa.ps1 -CudaVersion "${{ matrix.cuda_version }}"
shell: pwsh
- name: Setup MSVC
if: runner.os == 'Windows'
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ bitsandbytes has the following minimum requirements for all platforms:
<tr>
<td></td>
<td>🟩 NVIDIA GPU <br><code>cuda</code></td>
<td>SM121</td>
<td>SM100, SM120, SM121</td>
<td>✅</td>
<td>✅</td>
<td>✅</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The currently distributed `bitsandbytes` packages are built with the following c
| **Windows x86-64** | 11.8 - 12.6 | MSVC 19.43+ (VS2022) | sm50, sm60, sm75, sm80, sm86, sm89, sm90
| **Windows x86-64** | 12.8 | MSVC 19.43+ (VS2022) | sm70, sm75, sm80, sm86, sm89, sm90, sm100, sm120
| **Windows x86-64** | 13.0 - 13.2 | MSVC 19.43+ (VS2022) | sm75, sm80, sm86, sm89, sm90, sm100, sm120
| **Windows arm64** | 13.4 | MSVC 19.51+ (VS2026) | sm121
| **Windows arm64** | 13.4 - 13.5 | MSVC 19.51+ (VS2026) | sm100, sm120, sm121

The Linux build has a minimum glibc version of 2.24.

Expand Down
Loading