Dip  0.92.4
sym_proccomm.h
Go to the documentation of this file.
1 /*===========================================================================*/
2 /* */
3 /* This file is part of the SYMPHONY MILP Solver Framework. */
4 /* */
5 /* SYMPHONY was jointly developed by Ted Ralphs (ted@lehigh.edu) and */
6 /* Laci Ladanyi (ladanyi@us.ibm.com). */
7 /* */
8 /* (c) Copyright 2000-2019 Ted Ralphs. All Rights Reserved. */
9 /* */
10 /* This software is licensed under the Eclipse Public License. Please see */
11 /* accompanying file for terms. */
12 /* */
13 /*===========================================================================*/
14 
15 #ifndef _PROCCOMM_H
16 #define _PROCCOMM_H
17 
18 #include "sym_proto.h"
19 #include "sym_timemeas.h"
20 
21 #ifdef __PVM__
22 #include <pvm3.h>
23 #define DataInPlace PvmDataRaw
24 #define TaskHost PvmTaskHost
25 #define PROCESS_OK PvmOk
26 #define PVM_FUNC(info, func) if ((info = func) < 0) PVM_ERROR(info);
27 #else
28 #define PROCESS_OK 1
29 #define DataInPlace 0
30 #define TaskHost 0
31 #endif
32 
33 int register_process PROTO((void));
34 int init_send PROTO((int data_packing));
35 int send_char_array PROTO((char *array, int size));
36 int send_int_array PROTO((int *array, int size));
37 int send_dbl_array PROTO((double *array, int size));
38 int send_float_array PROTO((float *array, int size));
39 int send_str PROTO((char *str));
40 int send_msg PROTO((int recipient, int msgtag));
41 int msend_msg PROTO((int *recipients, int number, int msgtag));
42 int receive_msg PROTO((int who, int what));
43 int treceive_msg PROTO((int who, int what, struct timeval *timeout));
44 int nreceive_msg PROTO((int who, int what));
45 int bufinfo PROTO((int r_bufid, int *bytes, int *msgtag, int *sender));
46 int freebuf PROTO((int bufid));
47 int receive_char_array PROTO((char *array, int size));
48 int receive_int_array PROTO((int *array, int size));
49 int receive_dbl_array PROTO((double *array, int size));
50 int receive_float_array PROTO((float *array, int size));
51 int receive_str PROTO((char *str));
52 int spawn PROTO((char *task, char **argv, int flag, char *where, int ntask,
53  int *tids));
54 int pstat PROTO((int tid));
55 void kill_proc PROTO((int tid));
56 void comm_exit PROTO((void));
57 void setsbuf PROTO((int sbufid));
58 void setrbuf PROTO((int rbufid));
59 
60 void PVM_ERROR(int info);
61 
62 #endif
#define PROTO(x)
Definition: sym_proto.h:27
void PVM_ERROR(int info)