|
drake
1.0.0
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <drake/mapping.h>#include <drake/platform.h>#include "drawgraph-2.h"
Go to the source code of this file.
Data Structures | |
| struct | prel |
| struct | pt |
Defines | |
| #define | STRL 255 |
Typedefs | |
| typedef struct prel | Prel |
| typedef struct pt | Pt |
Functions | |
| void | initimage (void) |
| void | dashline (double x1, double y1, double x2, double y2) |
| void | circle (double xcenter, double ycenter, double radius) |
| void | arc (double x1, double y1, double x2, double y2) |
| void | textout (double x1, double y1, char *str, int size) |
| int | inputstructure (void) |
| int | prelcmp (const void *p1, const void *p2) |
| void | rankprocessors (void) |
| int | drawproc (int proc, int line) |
| void | drawline (int line) |
| void | drawedges (void) |
| void | drawallprocessors (void) |
| void | pelib_drawgraph2_draw (FILE *read_from, FILE *print_to, FILE *err_to) |
| mapping_t * | pelib_drawgraph2_load (FILE *read_from, mapping_t *mapping, int(filter)(task_t *)) |
Variables | |
| FILE * | input |
| FILE * | output |
| FILE * | error |
| double | xref = 0.0 |
| double | yref = 0.0 |
| double | yrad = 225.0 |
| double | xdiff |
| double | ydiff |
| int | x [NMAX][PMAX] |
| int | num_procs = 0 |
| int | num_tasks = 0 |
| Prel | ranklist [PMAX] |
| int | p |
| int | n |
| int | logn |
| Pt | pos [NMAX] |
| #define STRL 255 |
Definition at line 131 of file drawgraph-2.c.
| void arc | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2 | ||
| ) |
Definition at line 112 of file drawgraph-2.c.
| void circle | ( | double | xcenter, |
| double | ycenter, | ||
| double | radius | ||
| ) |
Definition at line 101 of file drawgraph-2.c.
| void dashline | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2 | ||
| ) |
Definition at line 93 of file drawgraph-2.c.
| void drawallprocessors | ( | void | ) |
Definition at line 347 of file drawgraph-2.c.
| void drawedges | ( | void | ) |
Definition at line 326 of file drawgraph-2.c.
| void drawline | ( | int | line | ) |
Definition at line 319 of file drawgraph-2.c.
| int drawproc | ( | int | proc, |
| int | line | ||
| ) |
Definition at line 278 of file drawgraph-2.c.
| void initimage | ( | void | ) |
Definition at line 76 of file drawgraph-2.c.
| int inputstructure | ( | void | ) |
Definition at line 134 of file drawgraph-2.c.
| 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.
| int prelcmp | ( | const void * | p1, |
| const void * | p2 | ||
| ) |
Definition at line 240 of file drawgraph-2.c.
| void rankprocessors | ( | void | ) |
Definition at line 256 of file drawgraph-2.c.
| void textout | ( | double | x1, |
| double | y1, | ||
| char * | str, | ||
| int | size | ||
| ) |
Definition at line 123 of file drawgraph-2.c.
| FILE * error |
Definition at line 33 of file drawgraph-2.c.
| FILE* input |
Definition at line 33 of file drawgraph-2.c.
| int logn |
Definition at line 62 of file drawgraph-2.c.
| int n |
Definition at line 62 of file drawgraph-2.c.
| int num_procs = 0 |
Definition at line 49 of file drawgraph-2.c.
| int num_tasks = 0 |
Definition at line 50 of file drawgraph-2.c.
| FILE * output |
Definition at line 33 of file drawgraph-2.c.
| int p |
Definition at line 62 of file drawgraph-2.c.
Definition at line 71 of file drawgraph-2.c.
Definition at line 59 of file drawgraph-2.c.
Definition at line 48 of file drawgraph-2.c.
| double xdiff |
Definition at line 43 of file drawgraph-2.c.
| double xref = 0.0 |
Definition at line 36 of file drawgraph-2.c.
| double ydiff |
Definition at line 44 of file drawgraph-2.c.
| double yrad = 225.0 |
Definition at line 40 of file drawgraph-2.c.
| double yref = 0.0 |
Definition at line 37 of file drawgraph-2.c.