Skip to content
Snippets Groups Projects
Commit 028f76b4 authored by Saskia Imani's avatar Saskia Imani
Browse files

Removed debug messages

parent b60be6aa
Branches
No related merge requests found
......@@ -18,8 +18,6 @@ void write_output(long matrix[], int n_row, int n_col, double time);
__global__
void dijkstra(int n, long matrix[], long result[]) {
printf("Djikstra summoned");
long *connected; // Array of 'boolean' on whether vertice [i] is connected to source
long *distance; // Distance of vertice [i] from source
......@@ -29,11 +27,7 @@ void dijkstra(int n, long matrix[], long result[]) {
connected = (long*)malloc(n * sizeof(long));
distance = (long *)malloc(n * sizeof(long));
printf("rank %d of n %d", my_rank, n);
for (int SOURCE_V = my_rank; SOURCE_V < n; SOURCE_V += stride) {
printf("Now processing for vertice %d.", SOURCE_V);
for (int i = 0; i < n; i++) {
if (i == SOURCE_V) {
connected[i] = TRUE;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment