Skip to content

[CI] Add Pytorch Linux testing to Nightly#22441

Open
sarnex wants to merge 1 commit into
syclfrom
sarnex/pytorch
Open

[CI] Add Pytorch Linux testing to Nightly#22441
sarnex wants to merge 1 commit into
syclfrom
sarnex/pytorch

Conversation

@sarnex

@sarnex sarnex commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Add a workflow to build and test Pytorch on Linux and run it in the nightly.

Example nightly run: https://github.com/intel/llvm/actions/runs/28252539540/job/83724245754

Comment thread .github/workflows/sycl-pytorch-build-and-test.yml Dismissed
Comment thread .github/workflows/sycl-pytorch-build-and-test.yml Dismissed
Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sarnex sarnex marked this pull request as ready for review June 26, 2026 19:43
@sarnex sarnex requested a review from a team as a code owner June 26, 2026 19:43
@sarnex sarnex requested a review from uditagarwal97 June 26, 2026 19:43
@sarnex

sarnex commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

FYI in case you are interseted @dvrogozh

@uditagarwal97 uditagarwal97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@dvrogozh dvrogozh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tips on how I would do. Consider as nit.

name: ${{ env.PYTORCH_WHEEL_ARTIFACT }}
path: dist

- name: Clone PyTorch Test Sources

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would also replace it with actions/checkout. It's also tunable for depth though 1 is a default I think.

env:
PYTORCH_REF: ${{ inputs.pytorch_ref }}
run: |
git clone https://github.com/pytorch/pytorch.git "$PYTORCH_SRC_DIR"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not to use actions/checkout? I also not sure why do you need ${{ env.PYTORCH_SRC_DIR }} instead of hardcoding somethin relative to current directory.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why do you need these 2 here. By default everything will be executed in the pwd=$GITHUB_WORKSPACE. So you can hardcode relatives paths everywhere when needed such as ./pytorch and ./llvm/devops. The only inconvenience will be that you will have multiple cloned repo in the root, i.e. ./llvm/devops instead of ./devops:

      - name: Checkout devops scripts
        uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
        with:
          path: llvm
          sparse-checkout: |
            devops/
          persist-credentials: false
      - name: Checkout pytorch
        uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
        with:
          repository: pytorch/pytorch
          ref: ${{ inputs.pytorch_ref }}
          submodules: recursive
          path: pytorch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants