mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
S390x: build nightly binaries for new pythons (#161920)
Enable python 3.13t, 3.14 and 3.14t on s390x for nightly binaries Fixes #161515 Pull Request resolved: https://github.com/pytorch/pytorch/pull/161920 Approved by: https://github.com/malfet
This commit is contained in:
parent
d647185037
commit
71992dd805
|
|
@ -83,9 +83,9 @@ function build_cpython {
|
||||||
py_suffix=${py_ver::-1}
|
py_suffix=${py_ver::-1}
|
||||||
py_folder=$py_suffix
|
py_folder=$py_suffix
|
||||||
fi
|
fi
|
||||||
# Only b3 is available now
|
# Update to rc2 due to https://github.com/python/cpython/commit/c72699086fe4
|
||||||
if [ "$py_suffix" == "3.14.0" ]; then
|
if [ "$py_suffix" == "3.14.0" ]; then
|
||||||
py_suffix="3.14.0b3"
|
py_suffix="3.14.0rc2"
|
||||||
fi
|
fi
|
||||||
wget -q $PYTHON_DOWNLOAD_URL/$py_folder/Python-$py_suffix.tgz -O Python-$py_ver.tgz
|
wget -q $PYTHON_DOWNLOAD_URL/$py_folder/Python-$py_suffix.tgz -O Python-$py_ver.tgz
|
||||||
do_cpython_build $py_ver Python-$py_suffix
|
do_cpython_build $py_ver Python-$py_suffix
|
||||||
|
|
|
||||||
13
.github/scripts/generate_binary_build_matrix.py
vendored
13
.github/scripts/generate_binary_build_matrix.py
vendored
|
|
@ -330,13 +330,14 @@ def generate_wheels_matrix(
|
||||||
else arch_version
|
else arch_version
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO: Enable python 3.13t on cpu-s390x
|
|
||||||
if gpu_arch_type == "cpu-s390x" and python_version == "3.13t":
|
|
||||||
continue
|
|
||||||
# TODO: Enable python 3.14 for rest
|
# TODO: Enable python 3.14 for rest
|
||||||
if os not in ["linux", "linux-aarch64", "macos-arm64", "windows"] and (
|
if os not in [
|
||||||
python_version == "3.14" or python_version == "3.14t"
|
"linux",
|
||||||
):
|
"linux-aarch64",
|
||||||
|
"linux-s390x",
|
||||||
|
"macos-arm64",
|
||||||
|
"windows",
|
||||||
|
] and (python_version == "3.14" or python_version == "3.14t"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# cuda linux wheels require PYTORCH_EXTRA_INSTALL_REQUIREMENTS to install
|
# cuda linux wheels require PYTORCH_EXTRA_INSTALL_REQUIREMENTS to install
|
||||||
|
|
|
||||||
192
.github/workflows/generated-linux-s390x-binary-manywheel-nightly.yml
generated
vendored
192
.github/workflows/generated-linux-s390x-binary-manywheel-nightly.yml
generated
vendored
|
|
@ -302,3 +302,195 @@ jobs:
|
||||||
secrets:
|
secrets:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
uses: ./.github/workflows/_binary-upload.yml
|
uses: ./.github/workflows/_binary-upload.yml
|
||||||
|
|
||||||
|
manywheel-py3_13t-cpu-s390x-build:
|
||||||
|
if: ${{ github.repository_owner == 'pytorch' }}
|
||||||
|
uses: ./.github/workflows/_binary-build-linux.yml
|
||||||
|
needs: get-label-type
|
||||||
|
with:
|
||||||
|
PYTORCH_ROOT: /pytorch
|
||||||
|
PACKAGE_TYPE: manywheel
|
||||||
|
# TODO: This is a legacy variable that we eventually want to get rid of in
|
||||||
|
# favor of GPU_ARCH_VERSION
|
||||||
|
DESIRED_CUDA: cpu
|
||||||
|
GPU_ARCH_TYPE: cpu-s390x
|
||||||
|
DOCKER_IMAGE: pytorch/manylinuxs390x-builder
|
||||||
|
DOCKER_IMAGE_TAG_PREFIX: cpu-s390x
|
||||||
|
DESIRED_PYTHON: "3.13t"
|
||||||
|
runs_on: linux.s390x
|
||||||
|
ALPINE_IMAGE: "docker.io/s390x/alpine"
|
||||||
|
timeout-minutes: 420
|
||||||
|
build_name: manywheel-py3_13t-cpu-s390x
|
||||||
|
build_environment: linux-s390x-binary-manywheel
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
manywheel-py3_13t-cpu-s390x-test: # Testing
|
||||||
|
if: ${{ github.repository_owner == 'pytorch' }}
|
||||||
|
needs:
|
||||||
|
- manywheel-py3_13t-cpu-s390x-build
|
||||||
|
- get-label-type
|
||||||
|
uses: ./.github/workflows/_binary-test-linux.yml
|
||||||
|
with:
|
||||||
|
PYTORCH_ROOT: /pytorch
|
||||||
|
PACKAGE_TYPE: manywheel
|
||||||
|
# TODO: This is a legacy variable that we eventually want to get rid of in
|
||||||
|
# favor of GPU_ARCH_VERSION
|
||||||
|
DESIRED_CUDA: cpu
|
||||||
|
GPU_ARCH_TYPE: cpu-s390x
|
||||||
|
DOCKER_IMAGE: pytorch/manylinuxs390x-builder
|
||||||
|
DOCKER_IMAGE_TAG_PREFIX: cpu-s390x
|
||||||
|
DESIRED_PYTHON: "3.13t"
|
||||||
|
build_name: manywheel-py3_13t-cpu-s390x
|
||||||
|
build_environment: linux-s390x-binary-manywheel
|
||||||
|
runs_on: linux.s390x
|
||||||
|
ALPINE_IMAGE: "docker.io/s390x/alpine"
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
manywheel-py3_13t-cpu-s390x-upload: # Uploading
|
||||||
|
if: ${{ github.repository_owner == 'pytorch' }}
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
needs: manywheel-py3_13t-cpu-s390x-test
|
||||||
|
with:
|
||||||
|
PYTORCH_ROOT: /pytorch
|
||||||
|
PACKAGE_TYPE: manywheel
|
||||||
|
# TODO: This is a legacy variable that we eventually want to get rid of in
|
||||||
|
# favor of GPU_ARCH_VERSION
|
||||||
|
DESIRED_CUDA: cpu
|
||||||
|
GPU_ARCH_TYPE: cpu-s390x
|
||||||
|
DOCKER_IMAGE: pytorch/manylinuxs390x-builder
|
||||||
|
DOCKER_IMAGE_TAG_PREFIX: cpu-s390x
|
||||||
|
DESIRED_PYTHON: "3.13t"
|
||||||
|
build_name: manywheel-py3_13t-cpu-s390x
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
uses: ./.github/workflows/_binary-upload.yml
|
||||||
|
|
||||||
|
manywheel-py3_14-cpu-s390x-build:
|
||||||
|
if: ${{ github.repository_owner == 'pytorch' }}
|
||||||
|
uses: ./.github/workflows/_binary-build-linux.yml
|
||||||
|
needs: get-label-type
|
||||||
|
with:
|
||||||
|
PYTORCH_ROOT: /pytorch
|
||||||
|
PACKAGE_TYPE: manywheel
|
||||||
|
# TODO: This is a legacy variable that we eventually want to get rid of in
|
||||||
|
# favor of GPU_ARCH_VERSION
|
||||||
|
DESIRED_CUDA: cpu
|
||||||
|
GPU_ARCH_TYPE: cpu-s390x
|
||||||
|
DOCKER_IMAGE: pytorch/manylinuxs390x-builder
|
||||||
|
DOCKER_IMAGE_TAG_PREFIX: cpu-s390x
|
||||||
|
DESIRED_PYTHON: "3.14"
|
||||||
|
runs_on: linux.s390x
|
||||||
|
ALPINE_IMAGE: "docker.io/s390x/alpine"
|
||||||
|
timeout-minutes: 420
|
||||||
|
build_name: manywheel-py3_14-cpu-s390x
|
||||||
|
build_environment: linux-s390x-binary-manywheel
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
manywheel-py3_14-cpu-s390x-test: # Testing
|
||||||
|
if: ${{ github.repository_owner == 'pytorch' }}
|
||||||
|
needs:
|
||||||
|
- manywheel-py3_14-cpu-s390x-build
|
||||||
|
- get-label-type
|
||||||
|
uses: ./.github/workflows/_binary-test-linux.yml
|
||||||
|
with:
|
||||||
|
PYTORCH_ROOT: /pytorch
|
||||||
|
PACKAGE_TYPE: manywheel
|
||||||
|
# TODO: This is a legacy variable that we eventually want to get rid of in
|
||||||
|
# favor of GPU_ARCH_VERSION
|
||||||
|
DESIRED_CUDA: cpu
|
||||||
|
GPU_ARCH_TYPE: cpu-s390x
|
||||||
|
DOCKER_IMAGE: pytorch/manylinuxs390x-builder
|
||||||
|
DOCKER_IMAGE_TAG_PREFIX: cpu-s390x
|
||||||
|
DESIRED_PYTHON: "3.14"
|
||||||
|
build_name: manywheel-py3_14-cpu-s390x
|
||||||
|
build_environment: linux-s390x-binary-manywheel
|
||||||
|
runs_on: linux.s390x
|
||||||
|
ALPINE_IMAGE: "docker.io/s390x/alpine"
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
manywheel-py3_14-cpu-s390x-upload: # Uploading
|
||||||
|
if: ${{ github.repository_owner == 'pytorch' }}
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
needs: manywheel-py3_14-cpu-s390x-test
|
||||||
|
with:
|
||||||
|
PYTORCH_ROOT: /pytorch
|
||||||
|
PACKAGE_TYPE: manywheel
|
||||||
|
# TODO: This is a legacy variable that we eventually want to get rid of in
|
||||||
|
# favor of GPU_ARCH_VERSION
|
||||||
|
DESIRED_CUDA: cpu
|
||||||
|
GPU_ARCH_TYPE: cpu-s390x
|
||||||
|
DOCKER_IMAGE: pytorch/manylinuxs390x-builder
|
||||||
|
DOCKER_IMAGE_TAG_PREFIX: cpu-s390x
|
||||||
|
DESIRED_PYTHON: "3.14"
|
||||||
|
build_name: manywheel-py3_14-cpu-s390x
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
uses: ./.github/workflows/_binary-upload.yml
|
||||||
|
|
||||||
|
manywheel-py3_14t-cpu-s390x-build:
|
||||||
|
if: ${{ github.repository_owner == 'pytorch' }}
|
||||||
|
uses: ./.github/workflows/_binary-build-linux.yml
|
||||||
|
needs: get-label-type
|
||||||
|
with:
|
||||||
|
PYTORCH_ROOT: /pytorch
|
||||||
|
PACKAGE_TYPE: manywheel
|
||||||
|
# TODO: This is a legacy variable that we eventually want to get rid of in
|
||||||
|
# favor of GPU_ARCH_VERSION
|
||||||
|
DESIRED_CUDA: cpu
|
||||||
|
GPU_ARCH_TYPE: cpu-s390x
|
||||||
|
DOCKER_IMAGE: pytorch/manylinuxs390x-builder
|
||||||
|
DOCKER_IMAGE_TAG_PREFIX: cpu-s390x
|
||||||
|
DESIRED_PYTHON: "3.14t"
|
||||||
|
runs_on: linux.s390x
|
||||||
|
ALPINE_IMAGE: "docker.io/s390x/alpine"
|
||||||
|
timeout-minutes: 420
|
||||||
|
build_name: manywheel-py3_14t-cpu-s390x
|
||||||
|
build_environment: linux-s390x-binary-manywheel
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
manywheel-py3_14t-cpu-s390x-test: # Testing
|
||||||
|
if: ${{ github.repository_owner == 'pytorch' }}
|
||||||
|
needs:
|
||||||
|
- manywheel-py3_14t-cpu-s390x-build
|
||||||
|
- get-label-type
|
||||||
|
uses: ./.github/workflows/_binary-test-linux.yml
|
||||||
|
with:
|
||||||
|
PYTORCH_ROOT: /pytorch
|
||||||
|
PACKAGE_TYPE: manywheel
|
||||||
|
# TODO: This is a legacy variable that we eventually want to get rid of in
|
||||||
|
# favor of GPU_ARCH_VERSION
|
||||||
|
DESIRED_CUDA: cpu
|
||||||
|
GPU_ARCH_TYPE: cpu-s390x
|
||||||
|
DOCKER_IMAGE: pytorch/manylinuxs390x-builder
|
||||||
|
DOCKER_IMAGE_TAG_PREFIX: cpu-s390x
|
||||||
|
DESIRED_PYTHON: "3.14t"
|
||||||
|
build_name: manywheel-py3_14t-cpu-s390x
|
||||||
|
build_environment: linux-s390x-binary-manywheel
|
||||||
|
runs_on: linux.s390x
|
||||||
|
ALPINE_IMAGE: "docker.io/s390x/alpine"
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
manywheel-py3_14t-cpu-s390x-upload: # Uploading
|
||||||
|
if: ${{ github.repository_owner == 'pytorch' }}
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: read
|
||||||
|
needs: manywheel-py3_14t-cpu-s390x-test
|
||||||
|
with:
|
||||||
|
PYTORCH_ROOT: /pytorch
|
||||||
|
PACKAGE_TYPE: manywheel
|
||||||
|
# TODO: This is a legacy variable that we eventually want to get rid of in
|
||||||
|
# favor of GPU_ARCH_VERSION
|
||||||
|
DESIRED_CUDA: cpu
|
||||||
|
GPU_ARCH_TYPE: cpu-s390x
|
||||||
|
DOCKER_IMAGE: pytorch/manylinuxs390x-builder
|
||||||
|
DOCKER_IMAGE_TAG_PREFIX: cpu-s390x
|
||||||
|
DESIRED_PYTHON: "3.14t"
|
||||||
|
build_name: manywheel-py3_14t-cpu-s390x
|
||||||
|
secrets:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
uses: ./.github/workflows/_binary-upload.yml
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user