Week 8 Day 2 - SIMD
The first hour of class was spent showing useful things in C & C++ including:
1) How to identify where code is crashing, even when it's not your fault, or partly your fault. (Use GDB and/or logging.)
2) How to use #ifdef statements to selectively include or exclude code based on flags either #defined in code or with -D flag in a Makefile
3) How to make macros in the C preprocessor to selectively turn on or off logging
4) How to use command line parameters (argc and argv)
5) How to make multithreaded programs in C++ using std::thread
The second half of class was talking about Flynn's Taxonomy (https://en.wikipedia.org/wiki/Flynn%27s_taxonomy) which divides CPUs into four categories:
1) SISD - a boring single core processor from the 90s
2) MISD - basically not used except in CPU voting systems for fault tolerance
3) MIMD - most modern multicore CPUs
4) SIMD - our main topic for today
SIMD is the notion that you can give one command but have multiple multiplies (or whatever) happen as a result across multiple "registers".
Other Videos By Bill Kerney
2021-03-11 | Week 8 Day 2 - Online Privacy |
2021-03-10 | Week 9 Day 2 - File I/O with Classes and NCURSES Programming |
2021-03-09 | Week 9 Day 1 - Matrix x Vector, Traceline |
2021-03-09 | Week 9 Day 1 - Hex & Octal, Image Processing, NEON |
2021-03-09 | Week 8 Day 1 - Corporate Censorship |
2021-03-08 | Week 9 Day 1 - How to UNIX |
2021-03-06 | Week 7 Day 3 - Is/Ought |
2021-03-05 | Lecture 8 - Procedural Generation |
2021-03-05 | Week 8 Day 3 - Deques, Pairs, Tuples |
2021-03-04 | Week 8 Day 2 - Cross Product |
2021-03-04 | Week 8 Day 2 - SIMD |
2021-03-04 | Week 7 Day 2 - Modal Logic |
2021-03-03 | Week 8 Day 2 - Memory Leaks, RPG 41 |
2021-03-02 | Week 8 Day 1 - Dot Products |
2021-03-02 | Week 8 Day 1 - Out of Order Execution, Register Renaming, Superscalar |
2021-03-02 | Week 7 Day 1 - Quantifiers |
2021-03-01 | Week 8 Day 1 - Templates |
2021-02-28 | Week 7 |
2021-02-28 | Week 7 Day 3 - Deep Copies, Stacks |
2021-02-27 | Week 6 Day 3 - Moar Midterm Review |
2021-02-25 | Week 7 Day 2 - Vector Math |