Skip to content
Snippets Groups Projects
Commit 2fb621e0 authored by David Goz's avatar David Goz :sleeping:
Browse files

comp_comm debugging phase

parent c53a7c34
No related merge requests found
......@@ -18,6 +18,7 @@ info:
@echo ' '
@echo '-----------------------------------------------------------------------------------------'
@echo '$$ make ---> compile the mpi application '
@echo '$$ make debug ---> compile the mpi application for debugging '
@echo '$$ make valgrind_memcheck ---> run the mpi application using Valgrind under Memcheck '
@echo '$$ make valgrind_callgrind ---> run the mpi application using Valgrind under Callgrind '
@echo '$$ make valgrind_cachegrind ---> run the mpi application using Valgrind under Cachegrind '
......@@ -28,6 +29,8 @@ info:
mpi: $(PROG)
debug: $(PROG_DEBUG)
valgrind_memcheck: $(PROG_MEMCHECK)
@echo 'oooOOO... valgrind_memcheck ...OOOooo'
mpirun -n 4 valgrind --tool=memcheck -s --default-suppressions=yes --log-file=valgrind_memcheck_log_%p.txt ./$< 9 2
......
......@@ -8,7 +8,7 @@
#include <mpi.h>
#define MASTER 0
#define MASTERTASK 0
#if defined(SINGLE_PRECISION)
typedef float MyData;
......
......@@ -10,7 +10,7 @@
/* function prototypes */
MyData **Allocate_2DdblArray(const int nx, const int ny);
void Show_2DdblArray(const MyData **const A,
void Show_2DdblArray( MyData **const A,
const int nx,
const int ny,
const char *const string);
......
......@@ -21,7 +21,7 @@ $(PROG): $(DEPENDENCIES)
@echo ' '
$(PROG_DEBUG): $(DEPENDENCIES)
$(CC) $(CFLAGS) -Og -ggdb3 -fno-omit-frame-pointer -I./include I$(MPI_INC) $(SOURCES) -o $@ -L$(MPI_LIB) $(LIBS)
$(CC) $(CFLAGS) -Og -ggdb3 -fno-omit-frame-pointer -I./include -I$(MPI_INC) $(SOURCES) -o $@ -L$(MPI_LIB) $(LIBS)
@echo ' '
@echo 'Program' $(PROG_DEBUG) 'compiled for' $(SYSTYPE) 'machine'
@echo ' '
......
This diff is collapsed.
......@@ -29,7 +29,7 @@ MyData **Allocate_2DdblArray(const int nx, const int ny)
}
/* ********************************************************************* */
void Show_2DdblArray(const MyData **const A,
void Show_2DdblArray( MyData **const A,
const int nx,
const int ny,
const char *const string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment