Skip to content

Shared memory and distributed memory parallel relaxation of a 2D matrix

License

Notifications You must be signed in to change notification settings

dancs-dev/parallel-computing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel Computing

Adventures in parallel computing using pthreads (shared memory) and MPI (distributed memory) during University. These projects were very interesting and insightful. The programs both perform a large computation (relaxing a 2D matrix).

Shared memory

How to run

Using gcc:

  1. Build using gcc -o shared-memory.out main.c matrix.c -lpthread -Wall -Wextra -Wconversion.
  2. Run using ./shared-memory.out -a ARRAYSIZE -p PRECISION -w NUMBEROFTHREADS.

Distributed memory

How to run

Using mpicc:

  1. Build using mpicc -Wall -Wextra -o distributed-memory.out main.c matrix.c.
  2. Run using mpirun ./distributed-memory.out -a ARRAYSIZE -p PRECISION.

About

Shared memory and distributed memory parallel relaxation of a 2D matrix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published