Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 12 edits #78

Merged
merged 3 commits into from
Sep 26, 2024
Merged

Conversation

dankamongmen
Copy link
Contributor

@dankamongmen dankamongmen commented Sep 15, 2024

Very few edits here. You suddenly start using MiB in 12-5. I'm all for the MB/MiB distinction, but you should probably use it everywhere if you're going to use it here? I didn't convert MiB to MB (this is your call), but I did change several instances of Mib that clearly meant MiB to MiB.

  • 12.1.2: i'd talk about GCC Function Multiversioning (https://gcc.gnu.org/wiki/FunctionMultiVersioning)
  • 12.1.3 p208: avoiding FMA might improve performance, but it might hurt accuracy (FMA uses an internal buffer to hold the first result, avoiding the loss of intermediate precision)

@dendibakh
Copy link
Owner

Very few edits here. You suddenly start using MiB in 12-5. I'm all for the MB/MiB distinction, but you should probably use it everywhere if you're going to use it here? I didn't convert MiB to MB (this is your call), but I did change several instances of Mib that clearly meant MiB to MiB.

Thanks, Nick. I didn't pay too much attention when I was writing... I will clean up across the book.

This is GCC- and x86-specific, and I haven't seen it used in any production software.

  • 12.1.3 p208: avoiding FMA might improve performance, but it might hurt accuracy (FMA uses an internal buffer to hold the first result, avoiding the loss of intermediate precision)

I appreciate that you've mentioned it. It's surprising how many software vendors care about bit-exact results, so FMA for them is a no-go, even though technically, yes, it will give them more accurate FP calculations.

* dotprod: support for dot product instructions for accelerating machine learning workloads.
* sve: enables scalable vector length instructions.
* sme: Scalable Matrix Extension for accelerating matrix multiplication.
* Advanced SIMD: also known as NEON, provides arithmetic SIMD instructions.
Copy link
Owner

Choose a reason for hiding this comment

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

ARM likes lowercase names, I've seen it in many places. Even disassembled code is shown in lowercase. But now I checked their official website, at it all capitalized. And also it will look consistent with everything else. So I guess I'll leave capitalized. Fine.

@dendibakh dendibakh merged commit bbc4c1c into dendibakh:main Sep 26, 2024
1 check passed
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.

2 participants