Actual source code: comm.h
1: /*$Id: comm.h,v 1.2 2001/04/10 19:37:38 bsmith Exp $*/
2: /***********************************comm.h*************************************
3: SPARSE GATHER-SCATTER PACKAGE: bss_malloc bss_malloc ivec error comm gs queue
5: Author: Henry M. Tufo III
7: e-mail: hmt@cs.brown.edu
9: snail-mail:
10: Division of Applied Mathematics
11: Brown University
12: Providence, RI 02912
14: Last Modification:
15: 6.21.97
16: ***********************************comm.h*************************************/
18: /***********************************comm.h*************************************
19: File Description:
20: -----------------
22: ***********************************comm.h*************************************/
23: #ifndef _comm_h
24: #define _comm_h
27: /***********************************comm.h*************************************
28: Function:
30: Input :
31: Output:
32: Return:
33: Description:
34: Usage:
35: ***********************************comm.h*************************************/
36: extern int my_id;
37: extern int num_nodes;
38: extern int floor_num_nodes;
39: extern int i_log2_num_nodes;
41: extern void giop(int *vals, int *work, int n, int *oprs);
42: extern void grop(REAL *vals, REAL *work, int n, int *oprs);
43: extern void gfop(void *vals, void *wk, int n, vbfp fp, DATA_TYPE dt, int comm_type);
44: extern void comm_init(void);
45: extern void giop_hc(int *vals, int *work, int n, int *oprs, int dim);
46: extern void grop_hc(REAL *vals, REAL *work, int n, int *oprs, int dim);
47: extern void grop_hc_vvl(REAL *vals, REAL *work, int *n, int *oprs, int dim);
48: extern void ssgl_radd(REAL *vals, REAL *work, int level, int *segs);
50: #if defined(_CRAY)
51: #define MSGTAG0 101
52: #define MSGTAG1 1001
53: #define MSGTAG2 30002
54: #define MSGTAG3 10001
55: #define MSGTAG4 12003
56: #define MSGTAG5 17001
57: #define MSGTAG6 22002
58: #else
59: #define MSGTAG0 101
60: #define MSGTAG1 1001
61: #define MSGTAG2 76207
62: #define MSGTAG3 100001
63: #define MSGTAG4 163841
64: #define MSGTAG5 249439
65: #define MSGTAG6 10000001
66: #endif
67: #endif