Commit 2fb621e0 authored by David Goz's avatar David Goz 😴
Browse files

comp_comm debugging phase

parent c53a7c34
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -18,6 +18,7 @@ info:
	@echo ' '
	@echo ' '
	@echo '-----------------------------------------------------------------------------------------'
	@echo '-----------------------------------------------------------------------------------------'
	@echo '$$ make                     ---> compile the mpi application                             '
	@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_memcheck   ---> run the mpi application using Valgrind under Memcheck   '
	@echo '$$ make valgrind_callgrind  ---> run the mpi application using Valgrind under Callgrind  '
	@echo '$$ make valgrind_callgrind  ---> run the mpi application using Valgrind under Callgrind  '
	@echo '$$ make valgrind_cachegrind ---> run the mpi application using Valgrind under Cachegrind '
	@echo '$$ make valgrind_cachegrind ---> run the mpi application using Valgrind under Cachegrind '
@@ -28,6 +29,8 @@ info:


mpi: $(PROG)
mpi: $(PROG)


debug: $(PROG_DEBUG)

valgrind_memcheck: $(PROG_MEMCHECK)
valgrind_memcheck: $(PROG_MEMCHECK)
	@echo 'oooOOO... valgrind_memcheck ...OOOooo'
	@echo 'oooOOO... valgrind_memcheck ...OOOooo'
	mpirun -n 4 valgrind --tool=memcheck -s --default-suppressions=yes --log-file=valgrind_memcheck_log_%p.txt ./$< 9 2
	mpirun -n 4 valgrind --tool=memcheck -s --default-suppressions=yes --log-file=valgrind_memcheck_log_%p.txt ./$< 9 2
+1 −1
Original line number Original line Diff line number Diff line
@@ -8,7 +8,7 @@


#include <mpi.h>
#include <mpi.h>


#define MASTER 0
#define MASTERTASK 0


#if defined(SINGLE_PRECISION)
#if defined(SINGLE_PRECISION)
typedef float MyData;
typedef float MyData;
+1 −1
Original line number Original line Diff line number Diff line
@@ -10,7 +10,7 @@


/* function prototypes */
/* function prototypes */
MyData **Allocate_2DdblArray(const int nx, const int ny);
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            nx,
                     const int            ny,
                     const int            ny,
                     const char *const    string);
                     const char *const    string);
+1 −1
Original line number Original line Diff line number Diff line
@@ -21,7 +21,7 @@ $(PROG): $(DEPENDENCIES)
	@echo ' '
	@echo ' '


$(PROG_DEBUG): $(DEPENDENCIES)
$(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 ' '
	@echo 'Program' $(PROG_DEBUG) 'compiled for' $(SYSTYPE) 'machine'
	@echo 'Program' $(PROG_DEBUG) 'compiled for' $(SYSTYPE) 'machine'
	@echo ' '
	@echo ' '
+217 −167

File changed.

Preview size limit exceeded, changes collapsed.

Loading