CPU fun

Random CPU related notes from a parallel runtime library writer.

The hottest Substack posts of CPU fun

And their main takeaways
121 implied HN points 22 Feb 24
  1. Floating point arithmetic can be more complex than expected, especially due to limited mantissa bits, affecting the accuracy of calculations.
  2. Complaining about OpenMP reductions giving 'the wrong answer' is misguided; the issue likely existed in the serial code and is now being exposed.
  3. Changing the type of the accumulator to 'double' can help resolve issues with floating point arithmetic and accuracy during sum reductions.
242 implied HN points 07 Mar 23
  1. Enemies are the people within your own group that you directly compete with for resources.
  2. It is essential to differentiate between opponents and enemies in order to navigate workplace dynamics effectively.
  3. Balancing local and global perspectives can lead to more harmonious and productive collaborations within organizations.
0 implied HN points 31 Oct 23
  1. Mixing OpenMP runtimes in the same program can cause fatal issues.
  2. For non-offload codes, the LLVM runtime can provide the interfaces needed by GCC compiled OpenMP code.
  3. It's safer to link with the LLVM runtime only when dealing with OpenMP.