Skip to content

egoat/BasicParallelization

Repository files navigation

General

This is the equivalent of a 'Hello World' for numerical code: Vector addition is implemented in 5 different ways:

  • Serial
  • OpneMP
  • MPI
  • MPI + OpenMP
  • CUDA

More detailed information can be found in this blogpost.

Setup

Packages neede are, openmpi-bin for MPI and nvidia-cuda-toolit for CUDA

sudo apt install openmpi-bin
sudo apt install nvidia-cuda-toolkit

Usage

The parallel.sh file compiles each example and runs it for different number of threads and/or processes.

./parallel.sh

About

A simple example for 5 different paralleliziation techniques.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors