Skip to content
This repository has been archived by the owner on Aug 10, 2019. It is now read-only.

ramonsantos/fibonacci-primes-mpi-gmp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fibonacci prime

Codacy Badge license

Description

This project was developed during a Distributed Systems discipline. The project was made to run in Clusters. The purpose is to find the numbers in the Fibonacci sequence and check if they are prime numbers.

Dependencies

  • OpenMPI - Message Passing Interface
  • GMP - GNU Multiple-Precision Library

How to compile

  $ mpicc -I/opt/local/include -L/opt/local/lib -lgmp main.c -o main

How to run

  $ mpirun -np N ./main

Where 'N' is the number of threads.

Results

In this study, the application was executed the first time with one thread and the second time with four threads.

Serial x Parallel