mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
Revert "[BE] Enables support for pytorch ci build in ARC + introduces _linux-build-rg.yml. (#121930)"
This reverts commit2c33e3a372. Reverted https://github.com/pytorch/pytorch/pull/121930 on behalf of https://github.com/huydhn due to I am seeing lots of inductor jobs failing after this change2c33e3a372. They looks unrelated though but this change updates Docker image so may be something sneaks in. I will try to revert this to see if it helps and will reland the change after ([comment](https://github.com/pytorch/pytorch/pull/121930#issuecomment-2000547641))
This commit is contained in:
parent
ca80d07ac7
commit
b717aa6f36
|
|
@ -11,8 +11,7 @@ mkdir -p $pb_dir
|
||||||
ln -s /usr/lib64 "$pb_dir/lib64"
|
ln -s /usr/lib64 "$pb_dir/lib64"
|
||||||
|
|
||||||
curl -LO "https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz" --retry 3
|
curl -LO "https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz" --retry 3
|
||||||
|
tar -xvz -C "$pb_dir" --strip-components 1 -f protobuf-all-3.17.3.tar.gz
|
||||||
tar -xvz --no-same-owner -C "$pb_dir" --strip-components 1 -f protobuf-all-3.17.3.tar.gz
|
|
||||||
NPROC=$[$(nproc) - 2]
|
NPROC=$[$(nproc) - 2]
|
||||||
pushd "$pb_dir" && ./configure && make -j${NPROC} && make -j${NPROC} check && sudo make -j${NRPOC} install && sudo ldconfig
|
pushd "$pb_dir" && ./configure && make -j${NPROC} && make -j${NPROC} check && sudo make -j${NRPOC} install && sudo ldconfig
|
||||||
popd
|
popd
|
||||||
|
|
|
||||||
|
|
@ -223,10 +223,6 @@ if [[ "${BUILD_ENVIRONMENT}" != *android* && "${BUILD_ENVIRONMENT}" != *cuda* ]]
|
||||||
export BUILD_STATIC_RUNTIME_BENCHMARK=ON
|
export BUILD_STATIC_RUNTIME_BENCHMARK=ON
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WORKSPACE_ORIGINAL_OWNER_ID=$(stat -c '%u' "/var/lib/jenkins/workspace")
|
|
||||||
sudo chown -R jenkins /var/lib/jenkins/workspace
|
|
||||||
git config --global --add safe.directory /var/lib/jenkins/workspace
|
|
||||||
|
|
||||||
if [[ "$BUILD_ENVIRONMENT" == *-bazel-* ]]; then
|
if [[ "$BUILD_ENVIRONMENT" == *-bazel-* ]]; then
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
@ -252,6 +248,7 @@ else
|
||||||
( ! get_exit_code python setup.py clean bad_argument )
|
( ! get_exit_code python setup.py clean bad_argument )
|
||||||
|
|
||||||
if [[ "$BUILD_ENVIRONMENT" != *libtorch* ]]; then
|
if [[ "$BUILD_ENVIRONMENT" != *libtorch* ]]; then
|
||||||
|
|
||||||
# rocm builds fail when WERROR=1
|
# rocm builds fail when WERROR=1
|
||||||
# XLA test build fails when WERROR=1
|
# XLA test build fails when WERROR=1
|
||||||
# set only when building other architectures
|
# set only when building other architectures
|
||||||
|
|
@ -358,5 +355,3 @@ if [[ "$BUILD_ENVIRONMENT" != *libtorch* && "$BUILD_ENVIRONMENT" != *bazel* ]];
|
||||||
fi
|
fi
|
||||||
|
|
||||||
print_sccache_stats
|
print_sccache_stats
|
||||||
|
|
||||||
sudo chown -R "$WORKSPACE_ORIGINAL_OWNER_ID" /var/lib/jenkins/workspace
|
|
||||||
|
|
|
||||||
207
.github/actions/linux-build/action.yml
vendored
207
.github/actions/linux-build/action.yml
vendored
|
|
@ -1,207 +0,0 @@
|
||||||
name: linux-build
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
build-environment:
|
|
||||||
required: true
|
|
||||||
description: Top-level label for what's being built/tested.
|
|
||||||
docker-image-name:
|
|
||||||
required: true
|
|
||||||
description: Name of the base docker image to build with.
|
|
||||||
build-generates-artifacts:
|
|
||||||
required: false
|
|
||||||
default: "true"
|
|
||||||
description: If set, upload generated build artifacts.
|
|
||||||
build-with-debug:
|
|
||||||
required: false
|
|
||||||
default: "false"
|
|
||||||
description: If set, build in debug mode.
|
|
||||||
sync-tag:
|
|
||||||
required: false
|
|
||||||
default: ""
|
|
||||||
description: |
|
|
||||||
If this is set, our linter will use this to make sure that every other
|
|
||||||
job with the same `sync-tag` is identical.
|
|
||||||
cuda-arch-list:
|
|
||||||
required: false
|
|
||||||
default: "5.2"
|
|
||||||
description: Runner label to select worker type
|
|
||||||
runner:
|
|
||||||
required: false
|
|
||||||
default: "linux.2xlarge"
|
|
||||||
description: |
|
|
||||||
List of CUDA architectures CI build should target.
|
|
||||||
test-matrix:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
description: |
|
|
||||||
An option JSON description of what test configs to run later on. This
|
|
||||||
is moved here from the Linux test workflow so that we can apply filter
|
|
||||||
logic using test-config labels earlier and skip unnecessary builds
|
|
||||||
s3-bucket:
|
|
||||||
description: S3 bucket to download artifact
|
|
||||||
required: false
|
|
||||||
default: "gha-artifacts"
|
|
||||||
aws-role-to-assume:
|
|
||||||
description: role to assume for downloading artifacts
|
|
||||||
required: false
|
|
||||||
default: ""
|
|
||||||
GITHUB_TOKEN:
|
|
||||||
description: GitHub token
|
|
||||||
required: true
|
|
||||||
HUGGING_FACE_HUB_TOKEN:
|
|
||||||
description: Hugging Face Hub token
|
|
||||||
required: false
|
|
||||||
default: ""
|
|
||||||
outputs:
|
|
||||||
docker-image:
|
|
||||||
value: ${{ steps.calculate-docker-image.outputs.docker-image }}
|
|
||||||
description: The docker image containing the built PyTorch.
|
|
||||||
test-matrix:
|
|
||||||
value: ${{ steps.filter.outputs.test-matrix }}
|
|
||||||
description: An optional JSON description of what test configs to run later on.
|
|
||||||
|
|
||||||
runs:
|
|
||||||
using: composite
|
|
||||||
steps:
|
|
||||||
- name: Setup Linux
|
|
||||||
uses: ./.github/actions/setup-linux
|
|
||||||
|
|
||||||
- name: configure aws credentials
|
|
||||||
uses: aws-actions/configure-aws-credentials@v3
|
|
||||||
if: ${{ inputs.aws-role-to-assume != '' }}
|
|
||||||
with:
|
|
||||||
role-to-assume: ${{ inputs.aws-role-to-assume }}
|
|
||||||
role-session-name: gha-linux-build
|
|
||||||
role-duration-seconds: 10800
|
|
||||||
aws-region: us-east-1
|
|
||||||
|
|
||||||
- name: Calculate docker image
|
|
||||||
id: calculate-docker-image
|
|
||||||
uses: pytorch/test-infra/.github/actions/calculate-docker-image@main
|
|
||||||
with:
|
|
||||||
docker-image-name: ${{ inputs.docker-image-name }}
|
|
||||||
|
|
||||||
- name: Use following to pull public copy of the image
|
|
||||||
id: print-ghcr-mirror
|
|
||||||
env:
|
|
||||||
ECR_DOCKER_IMAGE: ${{ steps.calculate-docker-image.outputs.docker-image }}
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
tag=${ECR_DOCKER_IMAGE##*/}
|
|
||||||
echo "docker pull ghcr.io/pytorch/ci-image:${tag/:/-}"
|
|
||||||
|
|
||||||
- name: Pull docker image
|
|
||||||
uses: pytorch/test-infra/.github/actions/pull-docker-image@main
|
|
||||||
with:
|
|
||||||
docker-image: ${{ steps.calculate-docker-image.outputs.docker-image }}
|
|
||||||
|
|
||||||
- name: Parse ref
|
|
||||||
id: parse-ref
|
|
||||||
shell: bash
|
|
||||||
run: .github/scripts/parse_ref.py
|
|
||||||
|
|
||||||
- name: Get workflow job id
|
|
||||||
id: get-job-id
|
|
||||||
uses: ./.github/actions/get-workflow-job-id
|
|
||||||
if: always()
|
|
||||||
with:
|
|
||||||
github-token: ${{ inputs.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# Apply the filter logic to the build step too if the test-config label is already there
|
|
||||||
- name: Select all requested test configurations (if the test matrix is available)
|
|
||||||
id: filter
|
|
||||||
uses: ./.github/actions/filter-test-configs
|
|
||||||
with:
|
|
||||||
github-token: ${{ inputs.GITHUB_TOKEN }}
|
|
||||||
test-matrix: ${{ inputs.test-matrix }}
|
|
||||||
job-name: ${{ steps.get-job-id.outputs.job-name }}
|
|
||||||
|
|
||||||
- name: Download pytest cache
|
|
||||||
uses: ./.github/actions/pytest-cache-download
|
|
||||||
continue-on-error: true
|
|
||||||
with:
|
|
||||||
cache_dir: .pytest_cache
|
|
||||||
job_identifier: ${{ github.workflow }}_${{ inputs.build-environment }}
|
|
||||||
s3_bucket: ${{ inputs.s3-bucket }}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
if: steps.filter.outputs.is-test-matrix-empty == 'False' || inputs.test-matrix == ''
|
|
||||||
id: build
|
|
||||||
env:
|
|
||||||
BUILD_ENVIRONMENT: ${{ inputs.build-environment }}
|
|
||||||
BRANCH: ${{ steps.parse-ref.outputs.branch }}
|
|
||||||
# TODO duplicated
|
|
||||||
AWS_DEFAULT_REGION: us-east-1
|
|
||||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
||||||
SHA1: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
||||||
SCCACHE_BUCKET: ossci-compiler-cache-circleci-v2
|
|
||||||
SCCACHE_S3_KEY_PREFIX: ${{ github.workflow }}
|
|
||||||
XLA_CLANG_CACHE_S3_BUCKET_NAME: ossci-compiler-clang-cache-circleci-xla
|
|
||||||
PR_LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
|
|
||||||
TORCH_CUDA_ARCH_LIST: ${{ inputs.cuda-arch-list }}
|
|
||||||
DOCKER_IMAGE: ${{ steps.calculate-docker-image.outputs.docker-image }}
|
|
||||||
XLA_CUDA: ${{ contains(inputs.build-environment, 'xla') && '0' || '' }}
|
|
||||||
DEBUG: ${{ inputs.build-with-debug == 'true' && '1' || '0' }}
|
|
||||||
OUR_GITHUB_JOB_ID: ${{ steps.get-job-id.outputs.job-id }}
|
|
||||||
HUGGING_FACE_HUB_TOKEN: ${{ inputs.HUGGING_FACE_HUB_TOKEN }}
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
# detached container should get cleaned up by teardown_ec2_linux
|
|
||||||
container_name=$(docker run \
|
|
||||||
-e BUILD_ENVIRONMENT \
|
|
||||||
-e MAX_JOBS="$(nproc --ignore=2)" \
|
|
||||||
-e AWS_DEFAULT_REGION \
|
|
||||||
-e PR_NUMBER \
|
|
||||||
-e SHA1 \
|
|
||||||
-e BRANCH \
|
|
||||||
-e SCCACHE_BUCKET \
|
|
||||||
-e SCCACHE_S3_KEY_PREFIX \
|
|
||||||
-e XLA_CUDA \
|
|
||||||
-e XLA_CLANG_CACHE_S3_BUCKET_NAME \
|
|
||||||
-e SKIP_SCCACHE_INITIALIZATION=1 \
|
|
||||||
-e TORCH_CUDA_ARCH_LIST \
|
|
||||||
-e PR_LABELS \
|
|
||||||
-e OUR_GITHUB_JOB_ID \
|
|
||||||
-e HUGGING_FACE_HUB_TOKEN \
|
|
||||||
--env-file="/tmp/github_env_${GITHUB_RUN_ID}" \
|
|
||||||
--security-opt seccomp=unconfined \
|
|
||||||
--cap-add=SYS_PTRACE \
|
|
||||||
--tty \
|
|
||||||
--detach \
|
|
||||||
--user jenkins \
|
|
||||||
-v "${GITHUB_WORKSPACE}:/var/lib/jenkins/workspace" \
|
|
||||||
-w /var/lib/jenkins/workspace \
|
|
||||||
"${DOCKER_IMAGE}"
|
|
||||||
)
|
|
||||||
docker exec -t "${container_name}" sh -c '.ci/pytorch/build.sh'
|
|
||||||
|
|
||||||
- name: Archive artifacts into zip
|
|
||||||
if: inputs.build-generates-artifacts == 'true' && steps.build.outcome != 'skipped'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .additional_ci_files
|
|
||||||
|
|
||||||
- name: Store PyTorch Build Artifacts on S3
|
|
||||||
uses: seemethere/upload-artifact-s3@v5
|
|
||||||
if: inputs.build-generates-artifacts == 'true' && steps.build.outcome != 'skipped'
|
|
||||||
with:
|
|
||||||
name: ${{ inputs.build-environment }}
|
|
||||||
retention-days: 14
|
|
||||||
if-no-files-found: error
|
|
||||||
path: artifacts.zip
|
|
||||||
s3-bucket: ${{ inputs.s3-bucket }}
|
|
||||||
|
|
||||||
- name: Upload sccache stats
|
|
||||||
if: steps.build.outcome != 'skipped'
|
|
||||||
uses: seemethere/upload-artifact-s3@v5
|
|
||||||
with:
|
|
||||||
s3-prefix: |
|
|
||||||
${{ github.repository }}/${{ github.run_id }}/${{ github.run_attempt }}/artifact
|
|
||||||
retention-days: 365
|
|
||||||
if-no-files-found: warn
|
|
||||||
path: sccache-stats-*.json
|
|
||||||
s3-bucket: ${{ inputs.s3-bucket }}
|
|
||||||
|
|
||||||
- name: Teardown Linux
|
|
||||||
uses: pytorch/test-infra/.github/actions/teardown-linux@main
|
|
||||||
if: always()
|
|
||||||
6
.github/actions/setup-linux/action.yml
vendored
6
.github/actions/setup-linux/action.yml
vendored
|
|
@ -26,14 +26,8 @@ runs:
|
||||||
echo "instance-type: $(get_ec2_metadata instance-type)"
|
echo "instance-type: $(get_ec2_metadata instance-type)"
|
||||||
echo "system info $(uname -a)"
|
echo "system info $(uname -a)"
|
||||||
|
|
||||||
- name: Check if in a ARC runner
|
|
||||||
shell: bash
|
|
||||||
id: check_arc_runner
|
|
||||||
run: echo "IN_ARC_RUNNER=$([ -f /.inarc ] && echo true || echo false)" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Start docker if docker deamon is not running
|
- name: Start docker if docker deamon is not running
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ steps.check_arc_runner.outputs.IN_ARC_RUNNER == 'false' }}
|
|
||||||
run: |
|
run: |
|
||||||
if systemctl is-active --quiet docker; then
|
if systemctl is-active --quiet docker; then
|
||||||
echo "Docker daemon is running...";
|
echo "Docker daemon is running...";
|
||||||
|
|
|
||||||
109
.github/workflows/_linux-build-label.yml
vendored
109
.github/workflows/_linux-build-label.yml
vendored
|
|
@ -1,109 +0,0 @@
|
||||||
name: linux-build
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
build-environment:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
description: Top-level label for what's being built/tested.
|
|
||||||
docker-image-name:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
description: Name of the base docker image to build with.
|
|
||||||
build-generates-artifacts:
|
|
||||||
required: false
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
description: If set, upload generated build artifacts.
|
|
||||||
build-with-debug:
|
|
||||||
required: false
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
description: If set, build in debug mode.
|
|
||||||
sync-tag:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
description: |
|
|
||||||
If this is set, our linter will use this to make sure that every other
|
|
||||||
job with the same `sync-tag` is identical.
|
|
||||||
cuda-arch-list:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "5.2"
|
|
||||||
description: Runner label to select worker type
|
|
||||||
runner:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "linux.2xlarge"
|
|
||||||
description: |
|
|
||||||
List of CUDA architectures CI build should target.
|
|
||||||
test-matrix:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
description: |
|
|
||||||
An option JSON description of what test configs to run later on. This
|
|
||||||
is moved here from the Linux test workflow so that we can apply filter
|
|
||||||
logic using test-config labels earlier and skip unnecessary builds
|
|
||||||
s3-bucket:
|
|
||||||
description: S3 bucket to download artifact
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "gha-artifacts"
|
|
||||||
aws-role-to-assume:
|
|
||||||
description: role to assume for downloading artifacts
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
secrets:
|
|
||||||
HUGGING_FACE_HUB_TOKEN:
|
|
||||||
required: false
|
|
||||||
description: |
|
|
||||||
HF Auth token to avoid rate limits when downloading models or datasets from hub
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
docker-image:
|
|
||||||
value: ${{ jobs.build.outputs.docker-image }}
|
|
||||||
description: The docker image containing the built PyTorch.
|
|
||||||
test-matrix:
|
|
||||||
value: ${{ jobs.build.outputs.test-matrix }}
|
|
||||||
description: An optional JSON description of what test configs to run later on.
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
# Don't run on forked repos
|
|
||||||
if: github.repository_owner == 'pytorch'
|
|
||||||
runs-on: ${{ inputs.runner }}
|
|
||||||
timeout-minutes: 240
|
|
||||||
outputs:
|
|
||||||
docker-image: ${{ steps.linux-build.outputs.docker-image }}
|
|
||||||
test-matrix: ${{ steps.linux-build.outputs.test-matrix }}
|
|
||||||
steps:
|
|
||||||
- name: Setup SSH (Click me for login details)
|
|
||||||
uses: pytorch/test-infra/.github/actions/setup-ssh@main
|
|
||||||
with:
|
|
||||||
github-secret: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
# [pytorch repo ref]
|
|
||||||
# Use a pytorch/pytorch reference instead of a reference to the local
|
|
||||||
# checkout because when we run this action we don't *have* a local
|
|
||||||
# checkout. In other cases you should prefer a local checkout.
|
|
||||||
- name: Checkout PyTorch
|
|
||||||
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main
|
|
||||||
|
|
||||||
- name: Linux Build
|
|
||||||
id: linux-build
|
|
||||||
uses: ./.github/actions/linux-build
|
|
||||||
with:
|
|
||||||
build-environment: ${{ inputs.build-environment }}
|
|
||||||
docker-image-name: ${{ inputs.docker-image-name }}
|
|
||||||
build-generates-artifacts: ${{ inputs.build-generates-artifacts }}
|
|
||||||
build-with-debug: ${{ inputs.build-with-debug }}
|
|
||||||
sync-tag: ${{ inputs.sync-tag }}
|
|
||||||
cuda-arch-list: ${{ inputs.cuda-arch-list }}
|
|
||||||
test-matrix: ${{ inputs.test-matrix }}
|
|
||||||
s3-bucket: ${{ inputs.s3-bucket }}
|
|
||||||
aws-role-to-assume: ${{ inputs.aws-role-to-assume }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
|
|
||||||
105
.github/workflows/_linux-build-rg.yml
vendored
105
.github/workflows/_linux-build-rg.yml
vendored
|
|
@ -1,105 +0,0 @@
|
||||||
name: linux-build-rg
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
inputs:
|
|
||||||
build-environment:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
description: Top-level label for what's being built/tested.
|
|
||||||
docker-image-name:
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
description: Name of the base docker image to build with.
|
|
||||||
build-generates-artifacts:
|
|
||||||
required: false
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
description: If set, upload generated build artifacts.
|
|
||||||
build-with-debug:
|
|
||||||
required: false
|
|
||||||
type: boolean
|
|
||||||
default: false
|
|
||||||
description: If set, build in debug mode.
|
|
||||||
sync-tag:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
description: |
|
|
||||||
If this is set, our linter will use this to make sure that every other
|
|
||||||
job with the same `sync-tag` is identical.
|
|
||||||
cuda-arch-list:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "5.2"
|
|
||||||
description: |
|
|
||||||
List of CUDA architectures CI build should target.
|
|
||||||
runner-group:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "arc-lf-linux.2xlarge"
|
|
||||||
description: Runner group to select group type
|
|
||||||
test-matrix:
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
description: |
|
|
||||||
An option JSON description of what test configs to run later on. This
|
|
||||||
is moved here from the Linux test workflow so that we can apply filter
|
|
||||||
logic using test-config labels earlier and skip unnecessary builds
|
|
||||||
s3-bucket:
|
|
||||||
description: S3 bucket to download artifact
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "gha-artifacts"
|
|
||||||
aws-role-to-assume:
|
|
||||||
description: role to assume for downloading artifacts
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
secrets:
|
|
||||||
HUGGING_FACE_HUB_TOKEN:
|
|
||||||
required: false
|
|
||||||
description: |
|
|
||||||
HF Auth token to avoid rate limits when downloading models or datasets from hub
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
docker-image:
|
|
||||||
value: ${{ jobs.build.outputs.docker-image }}
|
|
||||||
description: The docker image containing the built PyTorch.
|
|
||||||
test-matrix:
|
|
||||||
value: ${{ jobs.build.outputs.test-matrix }}
|
|
||||||
description: An optional JSON description of what test configs to run later on.
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
# Don't run on forked repos
|
|
||||||
if: github.repository_owner == 'pytorch'
|
|
||||||
runs-on:
|
|
||||||
group: ${{ inputs.runner-group }}
|
|
||||||
timeout-minutes: 240
|
|
||||||
outputs:
|
|
||||||
docker-image: ${{ steps.linux-build.outputs.docker-image }}
|
|
||||||
test-matrix: ${{ steps.linux-build.outputs.test-matrix }}
|
|
||||||
steps:
|
|
||||||
# [pytorch repo ref]
|
|
||||||
# Use a pytorch/pytorch reference instead of a reference to the local
|
|
||||||
# checkout because when we run this action we don't *have* a local
|
|
||||||
# checkout. In other cases you should prefer a local checkout.
|
|
||||||
- name: Checkout PyTorch
|
|
||||||
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main
|
|
||||||
|
|
||||||
- name: Linux Build
|
|
||||||
id: linux-build
|
|
||||||
uses: ./.github/actions/linux-build
|
|
||||||
with:
|
|
||||||
build-environment: ${{ inputs.build-environment }}
|
|
||||||
docker-image-name: ${{ inputs.docker-image-name }}
|
|
||||||
build-generates-artifacts: ${{ inputs.build-generates-artifacts }}
|
|
||||||
build-with-debug: ${{ inputs.build-with-debug }}
|
|
||||||
sync-tag: ${{ inputs.sync-tag }}
|
|
||||||
cuda-arch-list: ${{ inputs.cuda-arch-list }}
|
|
||||||
test-matrix: ${{ inputs.test-matrix }}
|
|
||||||
s3-bucket: ${{ inputs.s3-bucket }}
|
|
||||||
aws-role-to-assume: ${{ inputs.aws-role-to-assume }}
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
|
|
||||||
235
.github/workflows/_linux-build.yml
vendored
Normal file
235
.github/workflows/_linux-build.yml
vendored
Normal file
|
|
@ -0,0 +1,235 @@
|
||||||
|
name: linux-build
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
build-environment:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
description: Top-level label for what's being built/tested.
|
||||||
|
docker-image-name:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
description: Name of the base docker image to build with.
|
||||||
|
build-generates-artifacts:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
description: If set, upload generated build artifacts.
|
||||||
|
build-with-debug:
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
description: If set, build in debug mode.
|
||||||
|
sync-tag:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
description: |
|
||||||
|
If this is set, our linter will use this to make sure that every other
|
||||||
|
job with the same `sync-tag` is identical.
|
||||||
|
cuda-arch-list:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: "5.2"
|
||||||
|
description: |
|
||||||
|
List of CUDA architectures CI build should target.
|
||||||
|
runner:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: "linux.2xlarge"
|
||||||
|
description: |
|
||||||
|
List of CUDA architectures CI build should target.
|
||||||
|
test-matrix:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
description: |
|
||||||
|
An option JSON description of what test configs to run later on. This
|
||||||
|
is moved here from the Linux test workflow so that we can apply filter
|
||||||
|
logic using test-config labels earlier and skip unnecessary builds
|
||||||
|
s3-bucket:
|
||||||
|
description: S3 bucket to download artifact
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: "gha-artifacts"
|
||||||
|
aws-role-to-assume:
|
||||||
|
description: role to assume for downloading artifacts
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
secrets:
|
||||||
|
HUGGING_FACE_HUB_TOKEN:
|
||||||
|
required: false
|
||||||
|
description: |
|
||||||
|
HF Auth token to avoid rate limits when downloading models or datasets from hub
|
||||||
|
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
docker-image:
|
||||||
|
value: ${{ jobs.build.outputs.docker-image }}
|
||||||
|
description: The docker image containing the built PyTorch.
|
||||||
|
test-matrix:
|
||||||
|
value: ${{ jobs.build.outputs.test-matrix }}
|
||||||
|
description: An optional JSON description of what test configs to run later on.
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
# Don't run on forked repos
|
||||||
|
if: github.repository_owner == 'pytorch'
|
||||||
|
runs-on: ${{ inputs.runner }}
|
||||||
|
timeout-minutes: 240
|
||||||
|
outputs:
|
||||||
|
docker-image: ${{ steps.calculate-docker-image.outputs.docker-image }}
|
||||||
|
test-matrix: ${{ steps.filter.outputs.test-matrix }}
|
||||||
|
steps:
|
||||||
|
- name: Setup SSH (Click me for login details)
|
||||||
|
uses: pytorch/test-infra/.github/actions/setup-ssh@main
|
||||||
|
with:
|
||||||
|
github-secret: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# [pytorch repo ref]
|
||||||
|
# Use a pytorch/pytorch reference instead of a reference to the local
|
||||||
|
# checkout because when we run this action we don't *have* a local
|
||||||
|
# checkout. In other cases you should prefer a local checkout.
|
||||||
|
- name: Checkout PyTorch
|
||||||
|
uses: pytorch/pytorch/.github/actions/checkout-pytorch@main
|
||||||
|
|
||||||
|
- name: Setup Linux
|
||||||
|
uses: ./.github/actions/setup-linux
|
||||||
|
|
||||||
|
- name: configure aws credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v3
|
||||||
|
if: ${{ inputs.aws-role-to-assume != '' }}
|
||||||
|
with:
|
||||||
|
role-to-assume: ${{ inputs.aws-role-to-assume }}
|
||||||
|
role-session-name: gha-linux-build
|
||||||
|
role-duration-seconds: 10800
|
||||||
|
aws-region: us-east-1
|
||||||
|
|
||||||
|
- name: Calculate docker image
|
||||||
|
id: calculate-docker-image
|
||||||
|
uses: pytorch/test-infra/.github/actions/calculate-docker-image@main
|
||||||
|
with:
|
||||||
|
docker-image-name: ${{ inputs.docker-image-name }}
|
||||||
|
|
||||||
|
- name: Use following to pull public copy of the image
|
||||||
|
id: print-ghcr-mirror
|
||||||
|
env:
|
||||||
|
ECR_DOCKER_IMAGE: ${{ steps.calculate-docker-image.outputs.docker-image }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
tag=${ECR_DOCKER_IMAGE##*/}
|
||||||
|
echo "docker pull ghcr.io/pytorch/ci-image:${tag/:/-}"
|
||||||
|
|
||||||
|
- name: Pull docker image
|
||||||
|
uses: pytorch/test-infra/.github/actions/pull-docker-image@main
|
||||||
|
with:
|
||||||
|
docker-image: ${{ steps.calculate-docker-image.outputs.docker-image }}
|
||||||
|
|
||||||
|
- name: Parse ref
|
||||||
|
id: parse-ref
|
||||||
|
run: .github/scripts/parse_ref.py
|
||||||
|
|
||||||
|
- name: Get workflow job id
|
||||||
|
id: get-job-id
|
||||||
|
uses: ./.github/actions/get-workflow-job-id
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Apply the filter logic to the build step too if the test-config label is already there
|
||||||
|
- name: Select all requested test configurations (if the test matrix is available)
|
||||||
|
id: filter
|
||||||
|
uses: ./.github/actions/filter-test-configs
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
test-matrix: ${{ inputs.test-matrix }}
|
||||||
|
job-name: ${{ steps.get-job-id.outputs.job-name }}
|
||||||
|
|
||||||
|
- name: Download pytest cache
|
||||||
|
uses: ./.github/actions/pytest-cache-download
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
cache_dir: .pytest_cache
|
||||||
|
job_identifier: ${{ github.workflow }}_${{ inputs.build-environment }}
|
||||||
|
s3_bucket: ${{ inputs.s3-bucket }}
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
if: steps.filter.outputs.is-test-matrix-empty == 'False' || inputs.test-matrix == ''
|
||||||
|
id: build
|
||||||
|
env:
|
||||||
|
BUILD_ENVIRONMENT: ${{ inputs.build-environment }}
|
||||||
|
BRANCH: ${{ steps.parse-ref.outputs.branch }}
|
||||||
|
# TODO duplicated
|
||||||
|
AWS_DEFAULT_REGION: us-east-1
|
||||||
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
|
SHA1: ${{ github.event.pull_request.head.sha || github.sha }}
|
||||||
|
SCCACHE_BUCKET: ossci-compiler-cache-circleci-v2
|
||||||
|
SCCACHE_S3_KEY_PREFIX: ${{ github.workflow }}
|
||||||
|
XLA_CLANG_CACHE_S3_BUCKET_NAME: ossci-compiler-clang-cache-circleci-xla
|
||||||
|
PR_LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
|
||||||
|
TORCH_CUDA_ARCH_LIST: ${{ inputs.cuda-arch-list }}
|
||||||
|
DOCKER_IMAGE: ${{ steps.calculate-docker-image.outputs.docker-image }}
|
||||||
|
XLA_CUDA: ${{ contains(inputs.build-environment, 'xla') && '0' || '' }}
|
||||||
|
DEBUG: ${{ inputs.build-with-debug && '1' || '0' }}
|
||||||
|
OUR_GITHUB_JOB_ID: ${{ steps.get-job-id.outputs.job-id }}
|
||||||
|
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
# detached container should get cleaned up by teardown_ec2_linux
|
||||||
|
container_name=$(docker run \
|
||||||
|
-e BUILD_ENVIRONMENT \
|
||||||
|
-e MAX_JOBS="$(nproc --ignore=2)" \
|
||||||
|
-e AWS_DEFAULT_REGION \
|
||||||
|
-e PR_NUMBER \
|
||||||
|
-e SHA1 \
|
||||||
|
-e BRANCH \
|
||||||
|
-e SCCACHE_BUCKET \
|
||||||
|
-e SCCACHE_S3_KEY_PREFIX \
|
||||||
|
-e XLA_CUDA \
|
||||||
|
-e XLA_CLANG_CACHE_S3_BUCKET_NAME \
|
||||||
|
-e SKIP_SCCACHE_INITIALIZATION=1 \
|
||||||
|
-e TORCH_CUDA_ARCH_LIST \
|
||||||
|
-e PR_LABELS \
|
||||||
|
-e OUR_GITHUB_JOB_ID \
|
||||||
|
-e HUGGING_FACE_HUB_TOKEN \
|
||||||
|
--env-file="/tmp/github_env_${GITHUB_RUN_ID}" \
|
||||||
|
--security-opt seccomp=unconfined \
|
||||||
|
--cap-add=SYS_PTRACE \
|
||||||
|
--tty \
|
||||||
|
--detach \
|
||||||
|
--user jenkins \
|
||||||
|
-v "${GITHUB_WORKSPACE}:/var/lib/jenkins/workspace" \
|
||||||
|
-w /var/lib/jenkins/workspace \
|
||||||
|
"${DOCKER_IMAGE}"
|
||||||
|
)
|
||||||
|
docker exec -t "${container_name}" sh -c '.ci/pytorch/build.sh'
|
||||||
|
|
||||||
|
- name: Archive artifacts into zip
|
||||||
|
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped'
|
||||||
|
run: |
|
||||||
|
zip -1 -r artifacts.zip dist/ build/custom_test_artifacts build/lib build/bin .additional_ci_files
|
||||||
|
|
||||||
|
- name: Store PyTorch Build Artifacts on S3
|
||||||
|
uses: seemethere/upload-artifact-s3@v5
|
||||||
|
if: inputs.build-generates-artifacts && steps.build.outcome != 'skipped'
|
||||||
|
with:
|
||||||
|
name: ${{ inputs.build-environment }}
|
||||||
|
retention-days: 14
|
||||||
|
if-no-files-found: error
|
||||||
|
path: artifacts.zip
|
||||||
|
s3-bucket: ${{ inputs.s3-bucket }}
|
||||||
|
|
||||||
|
- name: Upload sccache stats
|
||||||
|
if: steps.build.outcome != 'skipped'
|
||||||
|
uses: seemethere/upload-artifact-s3@v5
|
||||||
|
with:
|
||||||
|
s3-prefix: |
|
||||||
|
${{ github.repository }}/${{ github.run_id }}/${{ github.run_attempt }}/artifact
|
||||||
|
retention-days: 365
|
||||||
|
if-no-files-found: warn
|
||||||
|
path: sccache-stats-*.json
|
||||||
|
s3-bucket: ${{ inputs.s3-bucket }}
|
||||||
|
|
||||||
|
- name: Teardown Linux
|
||||||
|
uses: pytorch/test-infra/.github/actions/teardown-linux@main
|
||||||
|
if: always()
|
||||||
2
.github/workflows/inductor-perf-compare.yml
vendored
2
.github/workflows/inductor-perf-compare.yml
vendored
|
|
@ -15,7 +15,7 @@ permissions: read-all
|
||||||
jobs:
|
jobs:
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-inductor-build:
|
linux-focal-cuda12_1-py3_10-gcc9-inductor-build:
|
||||||
name: cuda12.1-py3.10-gcc9-sm80
|
name: cuda12.1-py3.10-gcc9-sm80
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm80
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm80
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ permissions: read-all
|
||||||
jobs:
|
jobs:
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-inductor-build:
|
linux-focal-cuda12_1-py3_10-gcc9-inductor-build:
|
||||||
name: cuda12.1-py3.10-gcc9-sm80
|
name: cuda12.1-py3.10-gcc9-sm80
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm80
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm80
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
||||||
|
|
|
||||||
2
.github/workflows/inductor-periodic.yml
vendored
2
.github/workflows/inductor-periodic.yml
vendored
|
|
@ -20,7 +20,7 @@ permissions: read-all
|
||||||
jobs:
|
jobs:
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-periodic-dynamo-benchmarks-build:
|
linux-focal-cuda12_1-py3_10-gcc9-periodic-dynamo-benchmarks-build:
|
||||||
name: cuda12.1-py3.10-gcc9-sm86-periodic-dynamo-benchmarks
|
name: cuda12.1-py3.10-gcc9-sm86-periodic-dynamo-benchmarks
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
||||||
|
|
|
||||||
8
.github/workflows/inductor.yml
vendored
8
.github/workflows/inductor.yml
vendored
|
|
@ -18,7 +18,7 @@ permissions: read-all
|
||||||
jobs:
|
jobs:
|
||||||
linux-focal-rocm6_0-py3_8-inductor-build:
|
linux-focal-rocm6_0-py3_8-inductor-build:
|
||||||
name: rocm6.0-py3.8-inductor
|
name: rocm6.0-py3.8-inductor
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-rocm6.0-py3.8
|
build-environment: linux-focal-rocm6.0-py3.8
|
||||||
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
||||||
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-inductor-build:
|
linux-focal-cuda12_1-py3_10-gcc9-inductor-build:
|
||||||
name: cuda12.1-py3.10-gcc9-sm86
|
name: cuda12.1-py3.10-gcc9-sm86
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
||||||
|
|
@ -83,7 +83,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-inductor-build-gcp:
|
linux-focal-cuda12_1-py3_10-gcc9-inductor-build-gcp:
|
||||||
name: cuda12.1-py3.10-gcc9-sm80
|
name: cuda12.1-py3.10-gcc9-sm80
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm80
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm80
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9-inductor-benchmarks
|
||||||
|
|
@ -109,7 +109,7 @@ jobs:
|
||||||
|
|
||||||
linux-jammy-cpu-py3_8-gcc11-inductor-build:
|
linux-jammy-cpu-py3_8-gcc11-inductor-build:
|
||||||
name: linux-jammy-cpu-py3.8-gcc11-inductor
|
name: linux-jammy-cpu-py3.8-gcc11-inductor
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-py3_8-gcc11-build
|
build-environment: linux-jammy-py3_8-gcc11-build
|
||||||
docker-image-name: pytorch-linux-jammy-py3.8-gcc11-inductor-benchmarks
|
docker-image-name: pytorch-linux-jammy-py3.8-gcc11-inductor-benchmarks
|
||||||
|
|
|
||||||
2
.github/workflows/nightly.yml
vendored
2
.github/workflows/nightly.yml
vendored
|
|
@ -19,7 +19,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
docs-build:
|
docs-build:
|
||||||
name: docs build
|
name: docs build
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-py3.8-gcc11
|
build-environment: linux-jammy-py3.8-gcc11
|
||||||
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
||||||
|
|
|
||||||
10
.github/workflows/periodic.yml
vendored
10
.github/workflows/periodic.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
|
|
||||||
parallelnative-linux-jammy-py3_8-gcc11-build:
|
parallelnative-linux-jammy-py3_8-gcc11-build:
|
||||||
name: parallelnative-linux-jammy-py3.8-gcc11
|
name: parallelnative-linux-jammy-py3.8-gcc11
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: parallelnative-linux-jammy-py3.8-gcc11
|
build-environment: parallelnative-linux-jammy-py3.8-gcc11
|
||||||
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
||||||
|
|
@ -56,7 +56,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda11_8-py3_9-gcc9-build:
|
linux-focal-cuda11_8-py3_9-gcc9-build:
|
||||||
name: linux-focal-cuda11.8-py3.9-gcc9
|
name: linux-focal-cuda11.8-py3.9-gcc9
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda11.8-py3.9-gcc9
|
build-environment: linux-focal-cuda11.8-py3.9-gcc9
|
||||||
docker-image-name: pytorch-linux-focal-cuda11.8-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda11.8-cudnn8-py3-gcc9
|
||||||
|
|
@ -78,7 +78,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda11_8-py3_10-gcc9-debug-build:
|
linux-focal-cuda11_8-py3_10-gcc9-debug-build:
|
||||||
name: linux-focal-cuda11.8-py3.10-gcc9-debug
|
name: linux-focal-cuda11.8-py3.10-gcc9-debug
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda11.8-py3.10-gcc9-debug
|
build-environment: linux-focal-cuda11.8-py3.10-gcc9-debug
|
||||||
docker-image-name: pytorch-linux-focal-cuda11.8-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda11.8-cudnn8-py3-gcc9
|
||||||
|
|
@ -191,7 +191,7 @@ jobs:
|
||||||
|
|
||||||
linux-vulkan-focal-py3_11-clang10-build:
|
linux-vulkan-focal-py3_11-clang10-build:
|
||||||
name: linux-vulkan-focal-py3.11-clang10
|
name: linux-vulkan-focal-py3.11-clang10
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-vulkan-focal-py3.11-clang10
|
build-environment: linux-vulkan-focal-py3.11-clang10
|
||||||
docker-image-name: pytorch-linux-focal-py3.11-clang10
|
docker-image-name: pytorch-linux-focal-py3.11-clang10
|
||||||
|
|
@ -211,7 +211,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-rocm6_0-py3_8-build:
|
linux-focal-rocm6_0-py3_8-build:
|
||||||
name: linux-focal-rocm6.0-py3.8
|
name: linux-focal-rocm6.0-py3.8
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-rocm6.0-py3.8
|
build-environment: linux-focal-rocm6.0-py3.8
|
||||||
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
||||||
|
|
|
||||||
36
.github/workflows/pull.yml
vendored
36
.github/workflows/pull.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
contents: read
|
contents: read
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
aws-role-to-assume: arn:aws:iam::391835788720:role/gha-pytorch-ci-artifacts-role
|
aws-role-to-assume: arn:aws:iam::391835788720:role/gha-pytorch-ci-artifacts-role
|
||||||
build-environment: linux-jammy-py3.8-gcc11
|
build-environment: linux-jammy-py3.8-gcc11
|
||||||
|
|
@ -82,7 +82,7 @@ jobs:
|
||||||
|
|
||||||
linux-jammy-py3_8-gcc11-no-ops:
|
linux-jammy-py3_8-gcc11-no-ops:
|
||||||
name: linux-jammy-py3.8-gcc11-no-ops
|
name: linux-jammy-py3.8-gcc11-no-ops
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-py3.8-gcc11-no-ops
|
build-environment: linux-jammy-py3.8-gcc11-no-ops
|
||||||
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
||||||
|
|
@ -93,7 +93,7 @@ jobs:
|
||||||
|
|
||||||
linux-jammy-py3_8-gcc11-pch:
|
linux-jammy-py3_8-gcc11-pch:
|
||||||
name: linux-jammy-py3.8-gcc11-pch
|
name: linux-jammy-py3.8-gcc11-pch
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-py3.8-gcc11-pch
|
build-environment: linux-jammy-py3.8-gcc11-pch
|
||||||
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
||||||
|
|
@ -104,7 +104,7 @@ jobs:
|
||||||
|
|
||||||
linux-jammy-py3_10-clang15-asan-build:
|
linux-jammy-py3_10-clang15-asan-build:
|
||||||
name: linux-jammy-py3.10-clang15-asan
|
name: linux-jammy-py3.10-clang15-asan
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-py3.10-clang15-asan
|
build-environment: linux-jammy-py3.10-clang15-asan
|
||||||
docker-image-name: pytorch-linux-jammy-py3-clang15-asan
|
docker-image-name: pytorch-linux-jammy-py3-clang15-asan
|
||||||
|
|
@ -133,7 +133,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-py3_8-clang10-onnx-build:
|
linux-focal-py3_8-clang10-onnx-build:
|
||||||
name: linux-focal-py3.8-clang10-onnx
|
name: linux-focal-py3.8-clang10-onnx
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-py3.8-clang10-onnx
|
build-environment: linux-focal-py3.8-clang10-onnx
|
||||||
docker-image-name: pytorch-linux-focal-py3-clang10-onnx
|
docker-image-name: pytorch-linux-focal-py3-clang10-onnx
|
||||||
|
|
@ -156,7 +156,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-py3_8-clang10-build:
|
linux-focal-py3_8-clang10-build:
|
||||||
name: linux-focal-py3.8-clang10
|
name: linux-focal-py3.8-clang10
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-py3.8-clang10
|
build-environment: linux-focal-py3.8-clang10
|
||||||
docker-image-name: pytorch-linux-focal-py3.8-clang10
|
docker-image-name: pytorch-linux-focal-py3.8-clang10
|
||||||
|
|
@ -185,7 +185,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-py3_11-clang10-build:
|
linux-focal-py3_11-clang10-build:
|
||||||
name: linux-focal-py3.11-clang10
|
name: linux-focal-py3.11-clang10
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-py3.11-clang10
|
build-environment: linux-focal-py3.11-clang10
|
||||||
docker-image-name: pytorch-linux-focal-py3.11-clang10
|
docker-image-name: pytorch-linux-focal-py3.11-clang10
|
||||||
|
|
@ -214,7 +214,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-py3_12-clang10-build:
|
linux-focal-py3_12-clang10-build:
|
||||||
name: linux-focal-py3.12-clang10
|
name: linux-focal-py3.12-clang10
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-py3.12-clang10
|
build-environment: linux-focal-py3.12-clang10
|
||||||
docker-image-name: pytorch-linux-focal-py3.12-clang10
|
docker-image-name: pytorch-linux-focal-py3.12-clang10
|
||||||
|
|
@ -237,7 +237,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda11_8-py3_10-gcc9-build:
|
linux-focal-cuda11_8-py3_10-gcc9-build:
|
||||||
name: linux-focal-cuda11.8-py3.10-gcc9
|
name: linux-focal-cuda11.8-py3.10-gcc9
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda11.8-py3.10-gcc9
|
build-environment: linux-focal-cuda11.8-py3.10-gcc9
|
||||||
docker-image-name: pytorch-linux-focal-cuda11.8-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda11.8-cudnn8-py3-gcc9
|
||||||
|
|
@ -262,7 +262,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-build:
|
linux-focal-cuda12_1-py3_10-gcc9-build:
|
||||||
name: linux-focal-cuda12.1-py3.10-gcc9
|
name: linux-focal-cuda12.1-py3.10-gcc9
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
||||||
|
|
@ -290,7 +290,7 @@ jobs:
|
||||||
|
|
||||||
linux-jammy-py3-clang12-mobile-build:
|
linux-jammy-py3-clang12-mobile-build:
|
||||||
name: linux-jammy-py3-clang12-mobile-build
|
name: linux-jammy-py3-clang12-mobile-build
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-py3-clang12-mobile-build
|
build-environment: linux-jammy-py3-clang12-mobile-build
|
||||||
docker-image-name: pytorch-linux-jammy-py3-clang15-asan
|
docker-image-name: pytorch-linux-jammy-py3-clang15-asan
|
||||||
|
|
@ -302,7 +302,7 @@ jobs:
|
||||||
|
|
||||||
linux-jammy-cuda-11_8-cudnn8-py3_8-clang12-build:
|
linux-jammy-cuda-11_8-cudnn8-py3_8-clang12-build:
|
||||||
name: linux-jammy-cuda11.8-cudnn8-py3.8-clang12
|
name: linux-jammy-cuda11.8-cudnn8-py3.8-clang12
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-cuda11.8-cudnn8-py3.8-clang12
|
build-environment: linux-jammy-cuda11.8-cudnn8-py3.8-clang12
|
||||||
docker-image-name: pytorch-linux-jammy-cuda11.8-cudnn8-py3.8-clang12
|
docker-image-name: pytorch-linux-jammy-cuda11.8-cudnn8-py3.8-clang12
|
||||||
|
|
@ -313,7 +313,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-py3-clang9-mobile-custom-build-static:
|
linux-focal-py3-clang9-mobile-custom-build-static:
|
||||||
name: linux-focal-py3-clang9-mobile-custom-build-static
|
name: linux-focal-py3-clang9-mobile-custom-build-static
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-py3-clang9-mobile-custom-build-static
|
build-environment: linux-focal-py3-clang9-mobile-custom-build-static
|
||||||
docker-image-name: pytorch-linux-focal-py3-clang9-android-ndk-r21e
|
docker-image-name: pytorch-linux-focal-py3-clang9-android-ndk-r21e
|
||||||
|
|
@ -325,7 +325,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-py3_8-clang9-xla-build:
|
linux-focal-py3_8-clang9-xla-build:
|
||||||
name: linux-focal-py3_8-clang9-xla
|
name: linux-focal-py3_8-clang9-xla
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-py3_8-clang9-xla
|
build-environment: linux-focal-py3_8-clang9-xla
|
||||||
docker-image-name: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/xla_base:v1.1-lite
|
docker-image-name: 308535385114.dkr.ecr.us-east-1.amazonaws.com/pytorch/xla_base:v1.1-lite
|
||||||
|
|
@ -407,7 +407,7 @@ jobs:
|
||||||
|
|
||||||
linux-jammy-py3_8-gcc11-mobile-lightweight-dispatch-build:
|
linux-jammy-py3_8-gcc11-mobile-lightweight-dispatch-build:
|
||||||
name: linux-jammy-py3.8-gcc11-mobile-lightweight-dispatch-build
|
name: linux-jammy-py3.8-gcc11-mobile-lightweight-dispatch-build
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-py3.8-gcc111-mobile-lightweight-dispatch-build
|
build-environment: linux-jammy-py3.8-gcc111-mobile-lightweight-dispatch-build
|
||||||
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
||||||
|
|
@ -421,7 +421,7 @@ jobs:
|
||||||
# don't run build twice on main
|
# don't run build twice on main
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
name: linux-focal-rocm6.0-py3.8
|
name: linux-focal-rocm6.0-py3.8
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-rocm6.0-py3.8
|
build-environment: linux-focal-rocm6.0-py3.8
|
||||||
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
||||||
|
|
@ -435,7 +435,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-sm86-build:
|
linux-focal-cuda12_1-py3_10-gcc9-sm86-build:
|
||||||
name: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
name: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
||||||
|
|
@ -462,7 +462,7 @@ jobs:
|
||||||
|
|
||||||
linux-jammy-py3-clang12-executorch-build:
|
linux-jammy-py3-clang12-executorch-build:
|
||||||
name: linux-jammy-py3-clang12-executorch
|
name: linux-jammy-py3-clang12-executorch
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-py3-clang12-executorch
|
build-environment: linux-jammy-py3-clang12-executorch
|
||||||
docker-image-name: pytorch-linux-jammy-py3-clang12-executorch
|
docker-image-name: pytorch-linux-jammy-py3-clang12-executorch
|
||||||
|
|
|
||||||
2
.github/workflows/rocm.yml
vendored
2
.github/workflows/rocm.yml
vendored
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-rocm6_0-py3_8-build:
|
linux-focal-rocm6_0-py3_8-build:
|
||||||
name: linux-focal-rocm6.0-py3.8
|
name: linux-focal-rocm6.0-py3.8
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-rocm6.0-py3.8
|
build-environment: linux-focal-rocm6.0-py3.8
|
||||||
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
||||||
|
|
|
||||||
10
.github/workflows/slow.yml
vendored
10
.github/workflows/slow.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda12_1-py3-gcc9-slow-gradcheck-build:
|
linux-focal-cuda12_1-py3-gcc9-slow-gradcheck-build:
|
||||||
name: linux-focal-cuda12.1-py3-gcc9-slow-gradcheck
|
name: linux-focal-cuda12.1-py3-gcc9-slow-gradcheck
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3-gcc9-slow-gradcheck
|
build-environment: linux-focal-cuda12.1-py3-gcc9-slow-gradcheck
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
||||||
|
|
@ -57,7 +57,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-sm86-build:
|
linux-focal-cuda12_1-py3_10-gcc9-sm86-build:
|
||||||
name: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
name: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9-sm86
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
||||||
|
|
@ -81,7 +81,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-py3_8-clang10-build:
|
linux-focal-py3_8-clang10-build:
|
||||||
name: linux-focal-py3.8-clang10
|
name: linux-focal-py3.8-clang10
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-py3.8-clang10
|
build-environment: linux-focal-py3.8-clang10
|
||||||
docker-image-name: pytorch-linux-focal-py3.8-clang10
|
docker-image-name: pytorch-linux-focal-py3.8-clang10
|
||||||
|
|
@ -103,7 +103,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-rocm6_0-py3_8-build:
|
linux-focal-rocm6_0-py3_8-build:
|
||||||
name: linux-focal-rocm6.0-py3.8
|
name: linux-focal-rocm6.0-py3.8
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-rocm6.0-py3.8
|
build-environment: linux-focal-rocm6.0-py3.8
|
||||||
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
||||||
|
|
@ -128,7 +128,7 @@ jobs:
|
||||||
|
|
||||||
linux-jammy-py3_10-clang15-asan-build:
|
linux-jammy-py3_10-clang15-asan-build:
|
||||||
name: linux-jammy-py3.10-clang15-asan
|
name: linux-jammy-py3.10-clang15-asan
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-py3.10-clang15-asan
|
build-environment: linux-jammy-py3.10-clang15-asan
|
||||||
docker-image-name: pytorch-linux-jammy-py3-clang15-asan
|
docker-image-name: pytorch-linux-jammy-py3-clang15-asan
|
||||||
|
|
|
||||||
10
.github/workflows/trunk.yml
vendored
10
.github/workflows/trunk.yml
vendored
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
# Build PyTorch with BUILD_CAFFE2=ON
|
# Build PyTorch with BUILD_CAFFE2=ON
|
||||||
caffe2-linux-jammy-py3_8-gcc11-build:
|
caffe2-linux-jammy-py3_8-gcc11-build:
|
||||||
name: caffe2-linux-jammy-py3.8-gcc11
|
name: caffe2-linux-jammy-py3.8-gcc11
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: caffe2-linux-jammy-py3.8-gcc11
|
build-environment: caffe2-linux-jammy-py3.8-gcc11
|
||||||
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
docker-image-name: pytorch-linux-jammy-py3.8-gcc11
|
||||||
|
|
@ -40,7 +40,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-build:
|
linux-focal-cuda12_1-py3_10-gcc9-build:
|
||||||
name: linux-focal-cuda12.1-py3.10-gcc9
|
name: linux-focal-cuda12.1-py3.10-gcc9
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
||||||
|
|
@ -64,7 +64,7 @@ jobs:
|
||||||
|
|
||||||
libtorch-linux-focal-cuda12_1-py3_7-gcc9-debug-build:
|
libtorch-linux-focal-cuda12_1-py3_7-gcc9-debug-build:
|
||||||
name: libtorch-linux-focal-cuda12.1-py3.7-gcc9-debug
|
name: libtorch-linux-focal-cuda12.1-py3.7-gcc9-debug
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: libtorch-linux-focal-cuda12.1-py3.7-gcc9
|
build-environment: libtorch-linux-focal-cuda12.1-py3.7-gcc9
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
||||||
|
|
@ -78,7 +78,7 @@ jobs:
|
||||||
# no-ops builds test USE_PER_OPERATOR_HEADERS=0 where ATen/ops is not generated
|
# no-ops builds test USE_PER_OPERATOR_HEADERS=0 where ATen/ops is not generated
|
||||||
linux-focal-cuda12_1-py3_10-gcc9-no-ops-build:
|
linux-focal-cuda12_1-py3_10-gcc9-no-ops-build:
|
||||||
name: linux-focal-cuda12.1-py3.10-gcc9-no-ops
|
name: linux-focal-cuda12.1-py3.10-gcc9-no-ops
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-cuda12.1-py3.10-gcc9-no-ops
|
build-environment: linux-focal-cuda12.1-py3.10-gcc9-no-ops
|
||||||
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
docker-image-name: pytorch-linux-focal-cuda12.1-cudnn8-py3-gcc9
|
||||||
|
|
@ -192,7 +192,7 @@ jobs:
|
||||||
|
|
||||||
linux-focal-rocm6_0-py3_8-build:
|
linux-focal-rocm6_0-py3_8-build:
|
||||||
name: linux-focal-rocm6.0-py3.8
|
name: linux-focal-rocm6.0-py3.8
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-focal-rocm6.0-py3.8
|
build-environment: linux-focal-rocm6.0-py3.8
|
||||||
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
docker-image-name: pytorch-linux-focal-rocm-n-py3
|
||||||
|
|
|
||||||
2
.github/workflows/xpu.yml
vendored
2
.github/workflows/xpu.yml
vendored
|
|
@ -13,7 +13,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
linux-jammy-xpu-py3_8-build:
|
linux-jammy-xpu-py3_8-build:
|
||||||
name: linux-jammy-xpu-py3.8
|
name: linux-jammy-xpu-py3.8
|
||||||
uses: ./.github/workflows/_linux-build-label.yml
|
uses: ./.github/workflows/_linux-build.yml
|
||||||
with:
|
with:
|
||||||
build-environment: linux-jammy-xpu-py3.8
|
build-environment: linux-jammy-xpu-py3.8
|
||||||
docker-image-name: pytorch-linux-jammy-xpu-2024.0-py3
|
docker-image-name: pytorch-linux-jammy-xpu-2024.0-py3
|
||||||
|
|
|
||||||
|
|
@ -66,14 +66,7 @@ def check_file(
|
||||||
file: str,
|
file: str,
|
||||||
) -> List[LintMessage]:
|
) -> List[LintMessage]:
|
||||||
try:
|
try:
|
||||||
proc = run_command(
|
proc = run_command([binary, file])
|
||||||
[
|
|
||||||
binary,
|
|
||||||
"-ignore",
|
|
||||||
'"runs-on" section must be sequence node but got mapping node with "!!map" tag',
|
|
||||||
file,
|
|
||||||
]
|
|
||||||
)
|
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
return [
|
return [
|
||||||
LintMessage(
|
LintMessage(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user