Skip to content

Add hip-python to MITuna venv#2332

Merged
justinrosner merged 7 commits intodevelopfrom
justinr-tuna-fix
Apr 7, 2026
Merged

Add hip-python to MITuna venv#2332
justinrosner merged 7 commits intodevelopfrom
justinr-tuna-fix

Conversation

@justinrosner
Copy link
Copy Markdown
Contributor

@justinrosner justinrosner commented Apr 6, 2026

Motivation

This PR fixes a issue that is impacting PR CI jobs. E.g., https://ml-ci-internal.amd.com/job/MLIR/job/mlir/job/PR-2307/14/pipeline-overview/?selected-node=793

Technical Details

This fix updates tuna-script.sh to install hip-python for the MITuna venv. We currently have to install it to the tmp directory as the CI job doesn't have permissions otherwise. Note, this is only temporary until #2310 is merged in.

Test Plan

  • Passing PR CI

Test Result

  • Passing PR CI

Submission Checklist

Copy link
Copy Markdown
Contributor

@Mr-Anyone Mr-Anyone left a comment

Choose a reason for hiding this comment

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

I have a two approved PR, and it would be nice if I could merged them after this lands.

@justinrosner justinrosner marked this pull request as ready for review April 7, 2026 01:05
@justinrosner justinrosner requested a review from causten as a code owner April 7, 2026 01:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to unblock PR CI jobs by ensuring the MITuna execution environment has hip-python available, even when running on older images/venvs that don’t include it.

Changes:

  • Add a runtime pip install step for hip-python before invoking tuna_run.
  • Extend PYTHONPATH so the newly installed package is importable during the tuning run.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mlir/utils/tuna/tuna-script.sh Outdated
Comment thread mlir/utils/tuna/tuna-script.sh Outdated
Comment thread mlir/utils/tuna/tuna-script.sh Outdated
Comment thread mlir/utils/tuna/tuna-script.sh Outdated
@justinrosner justinrosner merged commit d236c0f into develop Apr 7, 2026
13 of 15 checks passed
@justinrosner justinrosner deleted the justinr-tuna-fix branch April 7, 2026 12:20
umangyadav pushed a commit that referenced this pull request Apr 9, 2026
* Add hip-python to MITuna venv

* Fix tuna script

* Log errors

* More venv tests

* More test changes

* Remove Dockerfile changes

* Attend to Copilot comments
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.

5 participants