Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > SSR_impls > SSR__MC_shared_impl
view dependency.h @ 59:471c89d1d545
try 40 cores
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Fri, 09 Mar 2012 19:01:21 +0100 |
| parents | 70d24e2343bb |
| children | 3c9ed64db705 |
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 "../../C_Libraries/ListOfArrays/ListOfArrays.h"
15 typedef struct {
16 int vp;
17 int task;
18 } Unit;
20 typedef struct {
21 int from_vp;
22 int from_task;
23 int to_vp;
24 int to_task;
25 } Dependency;
27 typedef struct {
28 int32 id;
29 ListOfArrays* senders;
30 ListOfArrays* receivers;
31 } NtoN;
33 FILE* dependency_file;
35 Dependency* new_dependency(int from_vp, int from_task, int to_vp, int to_task);
37 NtoN* new_NtoN(int id);
39 int set_dependency_file(FILE* file);
41 void print_ctl_dependency_to_file(void* _dep);
43 void print_comm_dependency_to_file(void* _dep);
45 void print_dyn_dependency_to_file(void* _dep);
47 void print_hw_dependency_to_file(void* _dep);
49 void print_dependency_to_file(void* dep);
51 void print_unit_to_file(void* unit);
53 void print_nton_to_file(void* _nton);
55 #endif /* DEPENDENCY_H */
