home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / adaptor / dalib / pvm3 / system.h < prev    next >
Text File  |  1993-06-24  |  3KB  |  69 lines

  1. /*******************************************************************
  2. *                                                                  *
  3. *  DEFINITIONS : system.h                                          *
  4. *                                                                  *
  5. *  Definition of the process control block                         *
  6. *                                                                  *
  7. *  PVM Version (SUN4, IBM AIX, Alliant)                            *
  8. *                                                                  *
  9. *******************************************************************/
  10.  
  11. #define MAXP  16        /* maximal number of node processes */
  12. #define MAXP1 MAXP+1
  13.  
  14. /*******************************************************************
  15. *                                                                  *
  16. *  Task Ids for PVM version 3.0                                    *
  17. *                                                                  *
  18. *******************************************************************/
  19.  
  20. int tids[MAXP1];
  21.  
  22. /* every array has an entry in the local process control block */
  23.  
  24. #define MAX_DIM     4   /* maximal rank of a distributed array   */
  25. #define MAX_ARRAYS 90   /* maximal number of array - descriptors */
  26.  
  27. /*******************************************************************
  28. *                                                                  *
  29. *  own local mailbox                                               *
  30. *                                                                  *
  31. *******************************************************************/
  32.  
  33. typedef struct
  34.   { int full, msg_length;
  35.     unsigned char *msg;
  36.   } local_mailbox;
  37.  
  38. local_mailbox own_mailbox;
  39.  
  40. /*******************************************************************
  41. *                                                                  *
  42. *  Process Control Block, local copy for host and all node proc.   *
  43. *                                                                  *
  44. *******************************************************************/
  45.  
  46. typedef struct
  47.  { int i, p;          /* 0 <= i <= p = number of processes */
  48.  } process_control_block;
  49.  
  50. process_control_block pcb;
  51.  
  52. /*******************************************************************
  53. *                                                                  *
  54. *  Model for Parallel execution (0 with Host, 1 without Host)      *
  55. *                                                                  *
  56. *******************************************************************/
  57.  
  58. int target_model; 
  59.  
  60. /*******************************************************************
  61. *                                                                  *
  62. *  Trace Information                                               *
  63. *                                                                  *
  64. *******************************************************************/
  65.  
  66. int trace_flag;   /* trace if trace_flag > 0 */
  67.  
  68.  
  69.