Skip to content

1m2r3a/Gray-Image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convert a color BMP file to gray using OpenMP, MPI and CUDA


Serial

g++ blur.cpp -o blur

./blur test.bmp


OpenMP icc -openmp grayMP.cpp -o grayMP

OR

gcc -fopenmp grayMP.cpp -o grayMP

./grayMP test.bmp 2

              ^Number of threads

MPI mpic++ -o grayMPI grayMPI.cpp

mpirun -n 4 grayMPi test.bmp

      ^number of threads

CUDA

nvcc grayCUDA.cu -o grayCUDA

./grayCUDA test.bmp 512 64

                 ^   ^ thread size

                 | block size

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published