Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows build workflow in the CI. #4041

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

sahas3
Copy link
Contributor

@sahas3 sahas3 commented Feb 23, 2025

  1. Adds a workflow to trigger windows build in the CI similar to the existing one for Linux.
  2. Only non-python based LIT unit tests are enabled in the workflow due to failures reported in Python tests are failing in Windows build #4040
  3. The CI is only run against torch-nightly since python based tests are disabled. My understanding is that without the python based tests there's no need to run against the stable version too. If that's not the case, will enable stable as well. Tested that both nightly and stable versions work fine: https://github.com/sahas3/torch-mlir/actions/runs/13477124004

@sahas3 sahas3 requested review from ScottTodd and aartbik February 23, 2025 22:36
Copy link
Member

Choose a reason for hiding this comment

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

Want to tag #3985 in the PR description?

Comment on lines +83 to +89
build-test-windows:
strategy:
fail-fast: true
matrix:
torch-version: [nightly]
name: Build (Windows, torch-${{ matrix.torch-version }})
runs-on: windows-latest
Copy link
Member

Choose a reason for hiding this comment

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

The logs at https://github.com/llvm/torch-mlir/actions/runs/13487571031/job/37680706814?pr=4041 show this job taking 2 hours with an empty cache and the standard GitHub-hosted runners. I'd personally limit jobs running on pull_request triggers to 40-60 minutes and move longer running jobs to a lower frequency (push or schedule triggers). That might mean creating a new ci_nightly.yml workflow with different triggers.

Switching to larger self-hosted runners may be an option, but I'm not familiar with what runners are available in the llvm github organization.

Do any other torch-mlir contributors/maintainers have opinions? I don't personally work enough in this repository to know what others would be comfortable with.

-DTORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS=ON \
-DTORCH_MLIR_ENABLE_LTC=OFF \
-DTORCH_MLIR_ENABLE_JIT_IR_IMPORTER=ON \
$repo_root/externals/llvm-project/llvm
Copy link
Member

Choose a reason for hiding this comment

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

nit: I would match the local style in this file and wrap variable expansions with {}, so ${repo_root}/externals/... and similar in other locations

Without the braces, expressions like $repo_root/build could be seen as ambiguous, as the reader needs to know that / marks the end of the variable name.

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.

2 participants