プロジェクト
GitHubで見る
jakobnissen/hardware_introduction
概要
What scientific programmers must know about CPUs and RAM to write fast code.
科学・工学計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルWhat scientists must know about hardware to write fast code
This document is hosted at https://viralinstruction.com/posts/hardware/
It is written as a Pluto notebook. If you can, I recommend running the code in a Pluto notebook so you can play around with it and learn. Alternatively, you can read the HTML file in your browser.
PRs are welcome.
This notebook covers:
- Why you must limit your disk read/writes
- What a CPU cache is, and how to use it effectively
- Memory alignment
- How to read assembly code and why you must do it
- Why you should reduce allocations
- Why immutable datastructures usually are fastest
- SIMD vectorization
- Struct of arrays vs array of structs
- Specialized CPU instructions
- Function inlining
- Loop unrolling
- Branch prediction
- The effects of memory dependencies in the CPU pipeline
- Multithreading
- Why GPUs are fast at some things and slow at others
関連プロジェクトを探す
読み込み中…