Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 616 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 616 Bytes

This program uses the MPI package to create a parallelized solution for any system of equations in which the number of unknowns is divisible by the number of cores. It also includes a sequential version of the code.

To run, use ./gengs to generate a input text file named .txt, or simply use the provided input.txt.

install mpi package if not already installed, preferably with homebrew.

Compile using the command: mpicc -o gs gs.c

Then run: mpirun -n gs inputfile.txt

Output should be the new unknowns and number of iterations it took!