comparison dependency.h @ 48:593fe0543a22

added NtoN construct recording (in send/recv_type for now)
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Wed, 21 Dec 2011 16:53:22 +0100
parents 23bcca1c3687
children 70d24e2343bb
comparison
equal deleted inserted replaced
2:cbabe0108521 3:c754ed737d33
8 #ifndef DEPENDENCY_H 8 #ifndef DEPENDENCY_H
9 #define DEPENDENCY_H 9 #define DEPENDENCY_H
10 10
11 11
12 #include <stdio.h> 12 #include <stdio.h>
13 #include "VMS/ListOfArrays/ListOfArrays.h"
13 14
14 typedef struct { 15 typedef struct {
15 int vp; 16 int vp;
16 int task; 17 int task;
17 } Unit; 18 } Unit;
21 int from_task; 22 int from_task;
22 int to_vp; 23 int to_vp;
23 int to_task; 24 int to_task;
24 } Dependency; 25 } Dependency;
25 26
27 typedef struct {
28 int32 id;
29 ListOfArrays* senders;
30 ListOfArrays* receivers;
31 } NtoN;
32
26 FILE* dependency_file; 33 FILE* dependency_file;
27 34
28 Dependency* new_dependency(int from_vp, int from_task, int to_vp, int to_task); 35 Dependency* new_dependency(int from_vp, int from_task, int to_vp, int to_task);
36
37 NtoN* new_NtoN(int id);
29 38
30 int set_dependency_file(FILE* file); 39 int set_dependency_file(FILE* file);
31 40
32 void print_ctl_dependency_to_file(void* _dep); 41 void print_ctl_dependency_to_file(void* _dep);
33 42
34 void print_comm_dependency_to_file(void* _dep); 43 void print_comm_dependency_to_file(void* _dep);
35 44
36 void print_dependency_to_file(void* dep); 45 void print_dependency_to_file(void* dep);
37 46
38 void print_unit_to_file(void* unit); 47 void print_unit_to_file(void* unit);
48
49 void print_nton_to_file(void* _nton);
50
39 #endif /* DEPENDENCY_H */ 51 #endif /* DEPENDENCY_H */
40 52