Loading jacobi/mpi/comp_comm/Makefile +3 −0 Original line number Original line Diff line number Diff line Loading @@ -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 ' Loading @@ -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 Loading jacobi/mpi/comp_comm/include/allvars.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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; Loading jacobi/mpi/comp_comm/include/tools.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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); Loading jacobi/mpi/comp_comm/make.def +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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 ' ' Loading jacobi/mpi/comp_comm/src/jacobi_2D_mpi_comp_comm.c +217 −167 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
jacobi/mpi/comp_comm/Makefile +3 −0 Original line number Original line Diff line number Diff line Loading @@ -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 ' Loading @@ -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 Loading
jacobi/mpi/comp_comm/include/allvars.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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; Loading
jacobi/mpi/comp_comm/include/tools.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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); Loading
jacobi/mpi/comp_comm/make.def +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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 ' ' Loading
jacobi/mpi/comp_comm/src/jacobi_2D_mpi_comp_comm.c +217 −167 File changed.Preview size limit exceeded, changes collapsed. Show changes