drake  1.0.0
src/drawgraph-2.h File Reference
#include <drake/mapping.h>
Include dependency graph for drawgraph-2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PMAX   11
#define NMAX   1025
#define DRAKE_MAPPING_MAX_PROCESSOR_COUNT   16
#define DRAKE_MAPPING_MAX_TASK_COUNT   256

Functions

void pelib_drawgraph2_draw (FILE *input, FILE *output, FILE *error)
mapping_tpelib_drawgraph2_load (FILE *, mapping_t *, int(filter)(task_t *))

Define Documentation

Definition at line 30 of file drawgraph-2.h.

#define DRAKE_MAPPING_MAX_TASK_COUNT   256

Definition at line 31 of file drawgraph-2.h.

#define NMAX   1025

Definition at line 28 of file drawgraph-2.h.

#define PMAX   11

Definition at line 27 of file drawgraph-2.h.


Function Documentation

void pelib_drawgraph2_draw ( FILE *  input,
FILE *  output,
FILE *  error 
)

Generates graphic mapping representation from a mapping AMPL file

Parameters:
inputInput matrix, task id (1 to n) vs processor (1 to p) in AMPL output format. 1 if task M(n,p) == 1 iff task n is mapped to processor p
outputOutput image file
errorOutput stream where error messages are written

Definition at line 365 of file drawgraph-2.c.

mapping_t* pelib_drawgraph2_load ( FILE *  ,
mapping_t ,
int(filter)(task_t *)   
)

Reads a AMPL mapping matrix (task vs processor) and returns a corresponding instance if mapping_t

Definition at line 395 of file drawgraph-2.c.