Hitmap 1.3
|
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <mpi.h>
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 |
#define elemA | ( | i, | |
j | |||
) | A[(i)*MATRIX_COLUMNS+(j)] |
Definition at line 61 of file refMPICannon.c.
#define elemB | ( | i, | |
j | |||
) | B[(i)*MATRIX_ROWS+(j)] |
Definition at line 63 of file refMPICannon.c.
#define elemC | ( | i, | |
j | |||
) | C[(i)*MATRIX_ROWS+(j)] |
Definition at line 65 of file refMPICannon.c.
#define elemCopyA | ( | i, | |
j | |||
) | copyA[(i)*MATRIX_COLUMNS+(j)] |
Definition at line 62 of file refMPICannon.c.
#define elemCopyB | ( | i, | |
j | |||
) | 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 | |||
) |
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] |
int main | ( | int | argc, |
char * | argv[] | ||
) |
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.