Skip to content

Arm backend: workaround pip emulation layer env exports on macOS#17815

Merged
Erik-Lundell merged 3 commits intopytorch:mainfrom
usamahz:gerrit-mlsdk-utils
Mar 5, 2026
Merged

Arm backend: workaround pip emulation layer env exports on macOS#17815
Erik-Lundell merged 3 commits intopytorch:mainfrom
usamahz:gerrit-mlsdk-utils

Conversation

@usamahz
Copy link
Collaborator

@usamahz usamahz commented Mar 3, 2026

When the emulation_layer CLI prints no export lines (e.g. macOS unsupported platform message), derive the deploy path from the installed pip package and populate the Vulkan layer/lib env vars. Also parse DYLD_LIBRARY_PATH when provided by the CLI output.

cc: @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell @Erik-Lundell

cc @digantdesai @SS-JIA @freddan80 @per @zingo @oscarandersson8218 @mansnils @Sebastian-Larsson @robell

When the emulation_layer CLI prints no export lines (e.g. macOS
unsupported platform message), derive the deploy path from the
installed pip package and populate the Vulkan layer/lib env vars.
Also parse DYLD_LIBRARY_PATH when provided by the CLI output.

Signed-off-by: Usamah Zaheer <usamah.zaheer@arm.com>
Change-Id: I835f6ffe3175d48fed9352118bca85c2a1375de6
@usamahz usamahz requested a review from digantdesai as a code owner March 3, 2026 10:33
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 3, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17815

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures, 1 Cancelled Job, 3 Unrelated Failures

As of commit aecb3de with merge base 5ddbab2 (image):

NEW FAILURES - The following jobs have failed:

CANCELLED JOB - The following job was cancelled. Please retry:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 3, 2026
@usamahz
Copy link
Collaborator Author

usamahz commented Mar 3, 2026

@pytorchbot label "partner: arm"

@pytorch-bot pytorch-bot bot added the partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm label Mar 3, 2026
@usamahz
Copy link
Collaborator Author

usamahz commented Mar 3, 2026

@pytorchbot label "release notes: arm"

@pytorch-bot pytorch-bot bot added the release notes: arm Changes to the ARM backend delegate label Mar 3, 2026
@usamahz
Copy link
Collaborator Author

usamahz commented Mar 3, 2026

@pytorchbot label ciflow/trunk

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 3, 2026

To add these label(s) (ciflow/trunk) to the PR, please first approve the workflows that are awaiting approval (scroll to the bottom of this page).

This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows.

Copy link
Collaborator

@zingo zingo left a comment

Choose a reason for hiding this comment

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

OK to merge

@zingo
Copy link
Collaborator

zingo commented Mar 5, 2026

Feel free to merge this, if you can't let me know and I press the button

@Erik-Lundell Erik-Lundell merged commit 9023780 into pytorch:main Mar 5, 2026
320 of 328 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. partner: arm For backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm release notes: arm Changes to the ARM backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants