Slides


Source Link

Lecture 4: HIP & GPU Basic Parallel Programming

Follow Link

Lecture 4: HIP & GPU Basic Parallel Programming

Single Instruction, Multiple Data (SIMD)


What is SIMD?

SIMD is a parallel computing architecture that allows a single instruction to operate on multiple data elements simultaneously.


SIMD is also a data-parallel programming model that allows developers to operate on multiple pieces of data simultaneously using a single instruction.

Comparison with Other Architectures

Architecture Instruction Stream Data Stream Characteristics
SISD Single Single Traditional sequential processing
SIMD Single Multiple Suitable for data-parallel processing
MISD Multiple Single Rare, used for fault-tolerant systems
MIMD Multiple Multiple Suitable for task-parallel processing

SIMD Implementation

DEMO: Absolute Vector


Demo Code

GitHub - kdotwei/SIMD-demo

Review SIMD functions