Skip to content

Conversation

@jhavukainen
Copy link
Collaborator

Fixes the silent correctness issue in #129207 by preventing the user from calling the convolution op on MPS device with an unsupported value.

The fix for the missing support is coming in later as that requires work on the kernel side so it'll take some more time.

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 25, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit fbe5e15 with merge base 7cf0b90 (image):
💚 Looks good so far! There are no failures yet. 💚

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

@pytorch-bot pytorch-bot bot added ciflow/mps Run MPS tests (subset of trunk) release notes: mps Release notes category labels Jun 25, 2024
@kulinseth
Copy link
Collaborator

Looks good, @jhavukainen can you add a test for it ?

@jhavukainen jhavukainen force-pushed the dev/joona/Conv1DErrorMessage branch from 49213d3 to fbe5e15 Compare June 28, 2024 00:47
@jhavukainen
Copy link
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 28, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

Comment on lines +169 to +171
"As a temporary fix, you can set the environment variable `PYTORCH_ENABLE_MPS_FALLBACK=1` ",
"to use the CPU as a fallback for this op. WARNING: this will be slower than running natively ",
"on MPS.");
Copy link
Collaborator

@qqaatw qqaatw Aug 29, 2024

Choose a reason for hiding this comment

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

@jhavukainen bailing out here doesn't work because the op is already implemented and dispatched into the kernel, and we don't read the environment variable anymore at this point. Ref: #134416

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah you are correct. Seem to have lost my train of thought there. Then the correct thing is to just raise the error that this is unimplemented as of now without the instruction to set the fallback env variable.

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

Labels

ciflow/mps Run MPS tests (subset of trunk) ciflow/trunk Trigger trunk jobs on your pull request Merged open source release notes: mps Release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants