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
5 changes: 4 additions & 1 deletion bin/_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ popd || exit 1
ccache --show-stats

# Fix wheel filenames.
uv run bin/fix_wheel.py -i "${OUTPUT_DIR}"/*.whl --version="${PACKAGE_VERSION}" --local-version="cu${CUDA_NAME}.torch${TORCH_NAME}"
# Optionally append a build-variant suffix to the local version (e.g. LOCAL_VERSION_SUFFIX=gb300
# -> '...+cu130.torch210.gb300') to distinguish a custom build from the upstream wheel.
LOCAL_VERSION="cu${CUDA_NAME}.torch${TORCH_NAME}${LOCAL_VERSION_SUFFIX:+.${LOCAL_VERSION_SUFFIX}}"
uv run bin/fix_wheel.py -i "${OUTPUT_DIR}"/*.whl --version="${PACKAGE_VERSION}" --local-version="${LOCAL_VERSION}"
1 change: 1 addition & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ env -i \
PACKAGE_VERSION="${PACKAGE_VERSION}" \
PYTHON_VERSION="${PYTHON_VERSION}" \
TORCH_VERSION="${TORCH_VERSION}" \
LOCAL_VERSION_SUFFIX="${LOCAL_VERSION_SUFFIX:-}" \
OUTPUT_NAME="${OUTPUT_NAME}" \
OUTPUT_DIR="${OUTPUT_DIR}" \
PATH="${PATH:-}" \
Expand Down
1 change: 1 addition & 0 deletions docs/v1.5.0/natten/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/natten/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ esac
# https://natten.org/install/#build-natten-libnatten
export NATTEN_N_WORKERS=${NATTEN_N_WORKERS:-$(($(nproc) / 2))}
export NATTEN_VERBOSE=1
export NATTEN_CUDA_ARCH="${TORCH_CUDA_ARCH_LIST}"
# Append sm_103 (Blackwell Ultra / GB300): not in PyTorch's prebuilt arch list,
# so TORCH_CUDA_ARCH_LIST omits it and NATTEN's Blackwell kernels fall back to
# "no kernel image" on GB300. NATTEN maps 10.3 -> sm_103a automatically.
export NATTEN_CUDA_ARCH="${TORCH_CUDA_ARCH_LIST};10.3"

pip wheel \
-v \
Expand Down
Loading