Week 8 Day 2 - SIMD

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=xldvmLbvqN4



Duration: 1:54:30
119 views
2


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".







Tags:
csci 45
simd
c preprocessor