Trabalhos Práticos

Assignment I: All-Pairs Shortest Path Problem

Exercícios

Aula 6: 10.10.2017

Programação em Memória Distribuída com o MPI
Identify and correct the errors present in the following MPI programs: mpi_bug_01.c, mpi_bug_02.c, mpi_bug_03.c, mpi_bug_04.c, mpi_bug_05.c, mpi_bug_06.c, mpi_bug_07.c and mpi_bug_08.c.

Aula 9: 19.10.2017

Programação em Memória Distribuída com o MPI
Given a vector of positive integers, v[ ] of size N, consider the problem of testing the primality of all values in v[ ] using a set of P processes (assume that N is devisible by P). Starting from mpi_prime.c, write a program that takes advantage of the MPI programming model to implement a solution. Consider that N and v[ ] are initialized by process 0 with a call to function load_vector() and that a number can be tested for primality with a call to function is_prime().