프로젝트
GitHub에서 보기
jakobnissen/hardware_introduction
소개
What scientific programmers must know about CPUs and RAM to write fast code.
과학 및 공학측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWhat 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
관련 프로젝트 살펴보기
불러오는 중…