TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Homebrew: AVX instructions in Big Sur bottles crash when run in Rosetta 2

54 pointsby thibautgover 4 years ago

7 comments

adenylylover 4 years ago
Why is this interesting? Rosetta 2 is documented to not support AVX: <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;apple_silicon&#x2F;about_the_rosetta_translation_environment" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;apple_silicon&#x2F;abou...</a>
评论 #25548114 未加载
评论 #25547930 未加载
评论 #25547933 未加载
mhh__over 4 years ago
Is there any long-form documentation (specifically an optimization manual) for M1 yet?.<p>Currently the only details I can find about the microarchitecture is either press waffle or things reverse engineered via timing (you can look for bumps in graphs to find the widths of various speculative features of the CPU).<p>It would be very Apple not to publish any (Fucking sad if true)<p>Edit: Intel, like them or not, have genuinely very good documentation (Much better than AMD&#x27;s) and seem to have really thought about actually <i>using</i> their performance - AMD can really deliver the goods on their terms, but they still lag behind in both software (particular compared to Nvidia) and documentation (Intel&#x27;s optimization manual is 850 pages; AMD&#x27;s is 45 pages). AMD basically give you a raw list of RDPMC event assignments to play with, Intel actually tell you how to use them.
评论 #25549863 未加载
评论 #25548713 未加载
评论 #25549755 未加载
评论 #25549159 未加载
marcan_42over 4 years ago
TL;DR: A change was made to set the minimum CPU level (instruction set target) for Big Sur builds to Ivy Bridge. This assumes the presence of AVX instructions on all Big Sur machines, which is true for Intel macs. Rosetta is a Big Sur &quot;machine&quot; that does not support AVX. Therefore, the assumption was false.
评论 #25548020 未加载
surfer7837over 4 years ago
Only bottles are affected so you can just compile from source with homebrew
chrisseatonover 4 years ago
Why aren&#x27;t they checking if the CPU supports AVX before using it?!
评论 #25548675 未加载
评论 #25549405 未加载
recursiveover 4 years ago
What&#x27;s a Big Sur bottle? I don&#x27;t follow Apple stuff super closely, but I&#x27;m completely lost here. Searches aren&#x27;t too helpful.
评论 #25549077 未加载
评论 #25553670 未加载
a-dubover 4 years ago
why doesn&#x27;t rosetta support avx? arm has neon and sve... i would assume that there&#x27;s equivalence for most basic vector math instructions and for those that there isn&#x27;t, like the weird sha256 and aes instructions, they could just be emulated in software?
评论 #25548056 未加载