Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Macros | Functions | Variables
refMPICannon.c File Reference
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <mpi.h>
Include dependency graph for refMPICannon.c:

Go to the source code of this file.

Macros

#define MATRIX_ROWS   10
 
#define MATRIX_COLUMNS   20
 
#define mpiTestError(ok, cad)
 
#define elemA(i, j)   A[(i)*MATRIX_COLUMNS+(j)]
 
#define elemCopyA(i, j)   copyA[(i)*MATRIX_COLUMNS+(j)]
 
#define elemB(i, j)   B[(i)*MATRIX_ROWS+(j)]
 
#define elemCopyB(i, j)   copyB[(i)*MATRIX_ROWS+(j)]
 
#define elemC(i, j)   C[(i)*MATRIX_ROWS+(j)]
 
#define procRatioRows0   MATRIX_ROWS/procs[0]
 
#define procRatioRows1   MATRIX_ROWS/procs[1]
 
#define procRatioColumns0   MATRIX_COLUMNS/procs[0]
 
#define procRatioColumns1   MATRIX_COLUMNS/procs[1]
 

Functions

int main (int argc, char *argv[])
 

Variables

int mpiRank
 
int mpiNProc
 
double mainClock
 
double clockReduce
 

Macro Definition Documentation

#define elemA (   i,
 
)    A[(i)*MATRIX_COLUMNS+(j)]

Definition at line 61 of file refMPICannon.c.

#define elemB (   i,
 
)    B[(i)*MATRIX_ROWS+(j)]

Definition at line 63 of file refMPICannon.c.

#define elemC (   i,
 
)    C[(i)*MATRIX_ROWS+(j)]

Definition at line 65 of file refMPICannon.c.

#define elemCopyA (   i,
 
)    copyA[(i)*MATRIX_COLUMNS+(j)]

Definition at line 62 of file refMPICannon.c.

#define elemCopyB (   i,
 
)    copyB[(i)*MATRIX_ROWS+(j)]

Definition at line 64 of file refMPICannon.c.

#define MATRIX_COLUMNS   20

Definition at line 52 of file refMPICannon.c.

#define MATRIX_ROWS   10

Definition at line 51 of file refMPICannon.c.

#define mpiTestError (   ok,
  cad 
)
Value:
if ( ok != MPI_SUCCESS ) { \
fprintf(stderr,"RunTime-Error, Rank %d: %s - %d\n", mpiRank, cad, ok);\
exit(-1); \
}
int mpiRank
Definition: refMPICannon.c:68

Definition at line 54 of file refMPICannon.c.

#define procRatioColumns0   MATRIX_COLUMNS/procs[0]
#define procRatioColumns1   MATRIX_COLUMNS/procs[1]
#define procRatioRows0   MATRIX_ROWS/procs[0]
#define procRatioRows1   MATRIX_ROWS/procs[1]

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 73 of file refMPICannon.c.

Here is the call graph for this function:

Variable Documentation

double clockReduce

Definition at line 70 of file refMPICannon.c.

double mainClock

Definition at line 70 of file refMPICannon.c.

int mpiNProc

Definition at line 69 of file refMPICannon.c.

int mpiRank

Definition at line 68 of file refMPICannon.c.