PRAMs and PRAM Sorting




CS255

Chris Pollett

Feb 23, 2022

Outline

Introduction

OpenCL Compute Units and Processing Elements

OpenCL Kinds of Memory and Barriers

The PRAM Model

More on the PRAM Model

A computation in the PRAM model proceeds as a series of parallel steps:

Example PRAM Program

0. LoadProcid 0
1. ReadAcc (0),1
2. JNeg 5, 1
3. Load 1, 1
4. Jump 6
5. Load 0, 1
6. StoreAcc (0), 1
7. Halt

In-Class Exercise