Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > SSR_impls > SSR__MC_shared_impl
view dependency.h @ 72:d20b105981b7
make idle VPs optional
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 28 Mar 2012 18:02:38 +0200 |
| parents | a32504bb2a1c |
| children | f20b4d9d3086 |
line source
1 /*
2 * File: dependency.h
3 * Author: Nina Engelhardt
4 *
5 * Created on 29. August 2011, 17:41
6 */
8 #ifndef _DEPENDENCY_H
9 #define _DEPENDENCY_H
12 #include <stdio.h>
13 #include "ListOfArrays/ListOfArrays.h"
15 typedef struct {
16 int vp;
17 int task;
18 void* ret_ptr;
19 } Unit;
21 typedef struct {
22 int from_vp;
23 int from_task;
24 int to_vp;
25 int to_task;
26 } Dependency;
28 typedef struct {
29 int32 id;
30 ListOfArrays* senders;
31 ListOfArrays* receivers;
32 } NtoN;
34 FILE* dependency_file;
36 Dependency* new_dependency(int from_vp, int from_task, int to_vp, int to_task);
38 NtoN* new_NtoN(int id);
40 int set_dependency_file(FILE* file);
42 void print_ctl_dependency_to_file(void* _dep);
44 void print_comm_dependency_to_file(void* _dep);
46 void print_dyn_dependency_to_file(void* _dep);
48 void print_hw_dependency_to_file(void* _dep);
50 void print_dependency_to_file(void* dep);
52 void print_unit_to_file(void* unit);
54 void print_nton_to_file(void* _nton);
56 #endif /* DEPENDENCY_H */
