Skip to content

Conversation

@swolchok
Copy link
Contributor

@swolchok swolchok commented Sep 17, 2024

Stack from ghstack (oldest at bottom):

The code is gated on #ifdef __aarch64__, but the -march flag wasn't.

Differential Revision: D62884370

The code is gated on `#ifdef __aarch64__`, but the `-march` flag wasn't.

Differential Revision: [D62884370](https://our.internmc.facebook.com/intern/diff/D62884370/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 17, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit a8fc9bb with merge base 3befc8a (image):
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot facebook-github-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 Sep 17, 2024
swolchok added a commit that referenced this pull request Sep 17, 2024
The code is gated on `#ifdef __aarch64__`, but the `-march` flag wasn't.

Differential Revision: [D62884370](https://our.internmc.facebook.com/intern/diff/D62884370/)

ghstack-source-id: 243083716
Pull Request resolved: #5431
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62884370

Copy link
Contributor

@cccclai cccclai left a comment

Choose a reason for hiding this comment

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

Is this for oss buck or internal buck?

fbobjc_platform_compiler_flags = [
(
".*arm64.*",
["-march=armv8+bf16"],
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure how this fix the issue, maybe some comments can help

Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't that crash on older phones/laptops?

@swolchok
Copy link
Contributor Author

Is this for oss buck or internal buck?

definitely internal, not sure if fbobjc_-prefixed flags affect OSS. I will follow up by looking into getting these flags set properly on OSS ARM64.

fbobjc_platform_compiler_flags = [
(
".*arm64.*",
["-march=armv8+bf16"],
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't that crash on older phones/laptops?

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 06c0fa3.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants