Hitmap 1.3
 All Data Structures Namespaces Files Functions Variables Typedefs Friends Macros Groups Pages
Macros | Functions | Variables
heat.c File Reference
#include <hitmap.h>
#include <unistd.h>
Include dependency graph for heat.c:

Go to the source code of this file.

Macros

#define SIMULATED_LOAD
 
#define printfRootInternal(...)   { if( hit_Rank == 0 ) { printf(__VA_ARGS__); fflush(stdout); }}
 
#define printfRoot(...)   printfRootInternal(__VA_ARGS__)
 
#define ITERATIONS   100
 
#define INIT_VALUES   10
 

Functions

 hit_tileNewType (double)
 
void print_help (char *name)
 
void init_graph (HitTile_double graph, HitShape shape_global)
 
HitTile_double heat_iteration (HitShape shape, HitTile_double graph)
 
double result_check (HitShape shape, HitTile_double graph)
 
int main (int argc, char **argv)
 

Variables

HitTile_double graph_aux
 
HitLayout lay = HIT_LAYOUT_NULL_STATIC
 
int simulated = 0
 

Detailed Description

Heat distribution in a graph. Hitmap version of the synthetic benchmark.

Author
Javier Fresno
Date
18-04-2011
05-10-2015

Definition in file heat.c.

Macro Definition Documentation

#define INIT_VALUES   10

Number of init values.

Definition at line 97 of file heat.c.

#define ITERATIONS   100

Default number of iterations.

Definition at line 92 of file heat.c.

#define printfRoot (   ...)    printfRootInternal(__VA_ARGS__)

Definition at line 53 of file heat.c.

#define printfRootInternal (   ...)    { if( hit_Rank == 0 ) { printf(__VA_ARGS__); fflush(stdout); }}

Definition at line 52 of file heat.c.

#define SIMULATED_LOAD

Enable simulated load

Definition at line 48 of file heat.c.

Function Documentation

HitTile_double heat_iteration ( HitShape  shape,
HitTile_double  graph 
)

Perform an iteration of the heat distribution equation.

Parameters
Thelocal shape of the graph.
graphThe graph.
Returns
The graph after the iteration.

Definition at line 281 of file heat.c.

Here is the caller graph for this function:

hit_tileNewType ( double  )
void init_graph ( HitTile_double  graph,
HitShape  shape_global 
)

Init the graph with random data.

Parameters
graphThe graph.
shape_globalShape of the global graph.

Definition at line 244 of file heat.c.

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Main function

Definition at line 120 of file heat.c.

Here is the call graph for this function:

void print_help ( char *  name)

Prints the command line usage.

Parameters
Nameof the program.

Definition at line 234 of file heat.c.

Here is the caller graph for this function:

double result_check ( HitShape  shape,
HitTile_double  graph 
)

Calculate the verification sum.

Parameters
shapeThe local shape of the graph.
graphThe local graph.
Returns
The sum.

Definition at line 326 of file heat.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

HitTile_double graph_aux

An auxiliary graph.

Definition at line 102 of file heat.c.

Layout object.

Definition at line 107 of file heat.c.

int simulated = 0

Definition at line 111 of file heat.c.