drake
1.0.0
|
#include <drake/mapping.h>
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_t * | pelib_drawgraph2_load (FILE *, mapping_t *, int(filter)(task_t *)) |
#define DRAKE_MAPPING_MAX_PROCESSOR_COUNT 16 |
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.
void pelib_drawgraph2_draw | ( | FILE * | input, |
FILE * | output, | ||
FILE * | error | ||
) |
Generates graphic mapping representation from a mapping AMPL file
input | Input 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 |
output | Output image file |
error | Output 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.