/usr/include/gpc.h is in libga-dev 5.3+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | #ifndef __GPCDEF
#define __GPCDEF
#include "armci.h"
#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif
#define GPC_INIT 1
#define GPC_PROBE 2
#define GPC_WAIT 3
#define GPC_DONE 4
#define GPC_PENDING 5
typedef struct {
int proc;
armci_hdl_t ahdl;
}gpc_hdl_t;
/* #define ARMCI_GPC_HLEN 1024 */
/* #define ARMCI_GPC_DLEN 1024*1024 */
extern int ARMCI_Gpc_register( int (*func) ());
extern void ARMCI_Gpc_release(int handle);
extern void * ARMCI_Gpc_translate(void *ptr, int proc, int from);
extern void ARMCI_Gpc_lock(int proc);
extern void ARMCI_Gpc_unlock(int proc);
extern int ARMCI_Gpc_trylock(int proc);
extern int ARMCI_Gpc_exec(int h,int p, void *hdr, int hlen, void *data,int dlen,
void *rhdr, int rhlen, void *rdata, int rdlen,
gpc_hdl_t* nbh);
extern int ARMCI_Get_gpc_hlen();
extern int ARMCI_Get_gpc_dlen();
extern void ARMCI_Gpc_init_handle(gpc_hdl_t *nbh);
extern void ARMCI_Gpc_wait(gpc_hdl_t *nbh);
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#endif
|