Skip to content

Parallelisation of some algorithms using openMPI & CUDA

Notifications You must be signed in to change notification settings

x0nu11byt3/hpc-writeups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HPC Writeups

OpenMPI - Compilation and Execution

For more information, please consult the official documentation OpenMPI

# Install OpenMPI in operating systems based on ArchLinux
$ sudo pacman -S openmpi
# compile
$ mpicc -lm yourfile.c -o yourapp
# running
$ mpirun -np <numberproccess> yourapp

CUDA - Compilation and Execution

You can read more in CUDA, Installation guide

# Install CUDA in operating systems based on ArchLinux
$ sudo pacman -S cuda
# compile
$ nvcc  yourfile.c -o yourapp
# running
$ ./yourapp