Skip to content

bettle123/ParallelComputing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel Computing

@Author: Su, Ming Yi
@Date: 05/21/2019
@Library: pthread, OpenMP, CUDA, MPI

@Background The producer - consumer problem is a classic programming exercise in computer science.
It has both high practical benefit as well as a straight-forward implementation.
This problem is composed of two parts.
First, a “producer” creates some sort of workload, storing instructions or intermediate work in a queue.
Second, a “consumer” reads this queue, performs the desired work and produces appropriate output.

I implement the producer-consumer problem in different parallel API.
There are 6 directories.
- lab1 (serial program)
- lab2 (pthread)
- lab3 (OpenMP)
- lab4 (CUDA)
- lab5 (MPI)
- Ouput

ScreenShot1 - Pthread vs serial program

"ScreenShot1"

ScreenShot2 - The reduction ratio by pthread

"ScreenShot2"

ScreenShot3 - OpenMP with different number of threads

"ScreenShot3"

ScreenShot4 - OpenMP vs pthread vs serial program

"ScreenShot4"

ScreenShot5 - CUDA vs serial program

"ScreenShot5"

ScreenShot6 - CUDA SIMD vs without SIMD

"ScreenShot6"

ScreenShot7 - MPI Architecture

"ScreenShot7"

ScreenShot8 - MPI result

"ScreenShot8"

ScreenShot8 - Compare all parallel API

"ScreenShot8"

About

ParallelComputing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published