diff 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
line diff
     1.1 --- a/dependency.h	Tue Dec 20 14:42:56 2011 +0100
     1.2 +++ b/dependency.h	Wed Dec 21 16:53:22 2011 +0100
     1.3 @@ -10,6 +10,7 @@
     1.4  
     1.5  
     1.6  #include <stdio.h>
     1.7 +#include "VMS/ListOfArrays/ListOfArrays.h"
     1.8  
     1.9  typedef struct {
    1.10      int vp;
    1.11 @@ -23,10 +24,18 @@
    1.12      int to_task;
    1.13  } Dependency; 
    1.14  
    1.15 +typedef struct {
    1.16 +    int32 id;
    1.17 +    ListOfArrays* senders;
    1.18 +    ListOfArrays* receivers;
    1.19 +} NtoN;
    1.20 +
    1.21  FILE* dependency_file;
    1.22  
    1.23  Dependency* new_dependency(int from_vp, int from_task, int to_vp, int to_task);
    1.24  
    1.25 +NtoN* new_NtoN(int id);
    1.26 +
    1.27  int set_dependency_file(FILE* file);
    1.28  
    1.29  void print_ctl_dependency_to_file(void* _dep);
    1.30 @@ -36,5 +45,8 @@
    1.31  void print_dependency_to_file(void* dep);
    1.32  
    1.33  void print_unit_to_file(void* unit);
    1.34 +
    1.35 +void print_nton_to_file(void* _nton);
    1.36 +
    1.37  #endif	/* DEPENDENCY_H */
    1.38