Skip to content

Commit

Permalink
Extend torch-trition conda to 3.11 (pytorch#93117)
Browse files Browse the repository at this point in the history
Also drop 3.7 from both builds and add proper names to the steps
Add `pytorch-nightly` for `conda` builds to test the installation against `pytorch` from the nightly channel as well as get [`filelock`](https://anaconda.org/pytorch-nightly/filelock) dependency for 3.11)
Pull Request resolved: pytorch#93117
Approved by: https://github.com/atalman
  • Loading branch information
malfet authored and pytorchmergebot committed Feb 6, 2023
1 parent 3c6bc58 commit 43f6ed4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/build_triton_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def build_triton(commit_hash: str, build_conda: bool = False, py_version : Optio

if py_version is None:
py_version = f"{sys.version_info.major}.{sys.version_info.minor}"
check_call(["conda", "build", "--python", py_version, "--output-folder", tmpdir, "."], cwd=triton_basedir)
check_call(["conda", "build", "--python", py_version,
"-c", "pytorch-nightly", "--output-folder", tmpdir, "."], cwd=triton_basedir)
conda_path = list(Path(tmpdir).glob("linux-64/torchtriton*.bz2"))[0]
shutil.copy(conda_path, Path.cwd())
return Path.cwd() / conda_path.name
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/build-triton-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ concurrency:

jobs:
build-wheel:
name: "Build Triton Wheel"
runs-on: [self-hosted, linux.2xlarge]
strategy:
fail-fast: false
matrix:
py_vers: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
py_vers: [ "3.8", "3.9", "3.10", "3.11" ]
timeout-minutes: 40
env:
DOCKER_IMAGE: pytorch/manylinux-builder:cuda11.6
Expand Down Expand Up @@ -107,11 +108,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.github-token }}
steps:
- name: Download Build Artifacts (3.7)
uses: actions/download-artifact@v3
with:
name: "pytorch-triton-wheel-3.7"
path: "${{ runner.temp }}/artifacts/"
- name: Download Build Artifacts (3.8)
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -148,11 +144,12 @@ jobs:
aws s3 cp --no-progress --acl public-read "${pkg}" "${s3_dir}"
done
build-conda:
name: "Build Triton Conda"
runs-on: [self-hosted, linux.2xlarge]
strategy:
fail-fast: false
matrix:
py_vers: [ "3.7", "3.8", "3.9", "3.10" ]
py_vers: [ "3.8", "3.9", "3.10", "3.11" ]
timeout-minutes: 40
env:
DOCKER_IMAGE: pytorch/conda-builder:cuda11.6
Expand Down

0 comments on commit 43f6ed4

Please sign in to comment.