diff --git a/makefile b/makefile new file mode 100644 index 0000000000000000000000000000000000000000..837d4660b461776a722d603abfebd4959fd413a1 --- /dev/null +++ b/makefile @@ -0,0 +1,3 @@ +compile: + gcc -g -Wall -o src/djikstra_serial src/djikstra_serial.c -fopenmp + gcc -g -Wall -o src/djikstra_paralel src/djikstra_paralel.c -fopenmp diff --git a/src/djikstra_paralel b/src/djikstra_paralel index fe64c51c47d48c79595398074ea6150bf80344fb..af396e9b3e3bc5c2e3656e996882220fb53e9b8f 100755 Binary files a/src/djikstra_paralel and b/src/djikstra_paralel differ diff --git a/src/djikstra_serial b/src/djikstra_serial index 4498573c3e97549b390496f2491c23bdab16b7eb..fd1be79402b8013790912713754cf9a452bbcf6e 100755 Binary files a/src/djikstra_serial and b/src/djikstra_serial differ diff --git a/src/makefile b/src/makefile deleted file mode 100644 index c51001e822d3fd7b6d8bd0c93675a7ce5e835c74..0000000000000000000000000000000000000000 --- a/src/makefile +++ /dev/null @@ -1,2 +0,0 @@ -make: djikstra_serial.c - gcc djikstra_serial.c -o djikstra_serial \ No newline at end of file diff --git a/src/paralel_3000.txt b/src/paralel_3000.txt deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/test.c b/test.c deleted file mode 100644 index c892e6cdca6453046a6b1e2ab8a47b31d896804b..0000000000000000000000000000000000000000 --- a/test.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <limits.h> -#include <stdio.h> -#include <stdbool.h> -#include <stdlib.h> -#include <math.h> -#include <mpi.h> -#include <assert.h> - -int main(int argc, char** argv) { - int rank; - int buf; - const int root=0; - - MPI_Init(&argc, &argv); - MPI_Comm_rank(MPI_COMM_WORLD, &rank); - - if(rank == root) { - buf = 777; - } - - printf("[%d]: Before Bcast, buf is %d\n", rank, buf); - - /* everyone calls bcast, data is taken from root and ends up in everyone's buf */ - MPI_Bcast(&buf, 1, MPI_INT, root, MPI_COMM_WORLD); - - printf("[%d]: After Bcast, buf is %d\n", rank, buf); - - MPI_Finalize(); - return 0; -} \ No newline at end of file