# Lecture 8: GPU Computing Intro. The CUDA Programming Model. CUDA Execution Configuration.

## Lecture Summary

* Flynn's Taxonomy
* Amdahl's Law
* Start GPU computing

## Flynn's Taxonomy

* SISD: Single Instruction/Single Data
* SIMD: Single Instruction/Multiple Data
* MISD: Multiple Instruction/Single Data
* MIMD: Multiple Instruction/Multiple Data

![](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCW1eYJShRco27pP_X%2FScreen%20Shot%202021-02-10%20at%201.56.21%20PM.png?alt=media\&token=f072c8cd-01c5-4514-909c-03ad262c2c7f)

![](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCW5CQ3ggl5t6KLqDG%2FScreen%20Shot%202021-02-10%20at%201.56.37%20PM.png?alt=media\&token=c4d0ed59-049e-47b0-a90b-d03b06ebd7a6)

![](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCWDPALIAWy9R5ur0E%2FScreen%20Shot%202021-02-10%20at%201.57.07%20PM.png?alt=media\&token=de1ea8a2-b0e3-4f05-a8fa-6f3c773b1289)

![](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCWGj8vHZqL7dTzuRu%2FScreen%20Shot%202021-02-10%20at%201.57.23%20PM.png?alt=media\&token=6b1736ab-1cac-4c65-bb69-1204696293fa)

## Amdahl's Law (Law of Diminishing Returns)

The overall speedup relies on the worst-performing sections the most (see more explanations [here](https://blog.ruipan.xyz/index/raid-a-case-for-redundant-arrays-of-inexpensive-disks#background-and-motivation)).

## GPU Computing with CUDA

![](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCY1N7G585nZMvP7TZ%2FScreen%20Shot%202021-02-10%20at%202.05.01%20PM.png?alt=media\&token=a7328e63-6c2f-422f-9816-dedb6c46df44)

![](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCY6bbnqKgosahC27h%2FScreen%20Shot%202021-02-10%20at%202.05.23%20PM.png?alt=media\&token=248bc730-daea-4d6f-8ed3-c78ae4c33a19)

![Fermi](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCZ2upP99L7gFQCBg_%2FScreen%20Shot%202021-02-10%20at%202.09.29%20PM.png?alt=media\&token=165eba52-b50c-48d5-9416-14ef0450c6f1)

![Volta](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCZBoe6MnKuow3-sXs%2FScreen%20Shot%202021-02-10%20at%202.10.08%20PM.png?alt=media\&token=b88b3b6e-33ec-4662-a5e5-4d34e0746011)

![Ampere](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCZGQ_nLoQKiSyANlj%2FScreen%20Shot%202021-02-10%20at%202.10.27%20PM.png?alt=media\&token=4d921148-1ccf-4a7e-8305-c3b30b818a16)

![](https://1313833672-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMTslgmrrtRXvxD2lk9%2F-MTBxAGuam68wxVzc68S%2F-MTCZR6i2dI4UQGRRF0E%2FScreen%20Shot%202021-02-10%20at%202.11.08%20PM.png?alt=media\&token=e5bbd048-7a28-4cde-bed6-6d7971a20b69)
