typedef struct { uint32_t seed; unsigned char chksum[CHKSUM_TOTAL]; } monoseed_t; monoseed_t *_mseed; int myproc; int numproc; int peerproc; int numprocs; gasnet_seginfo_t *seginfo_table; /* Test specific globals */ int chksum_iters = 0; gasnett_atomic_t chksum_success = gasnett_atomic_init(0); gasnett_atomic_t chksum_received = gasnett_atomic_init(0); #define CHKSUM_DUMP(chksum) do { \ int i = 0; \ uint8_t *c = (uint8_t *)chksum; \ printf("0x"); \ for (i = 0; i < CHKSUM_TOTAL; i++) \ printf("%0x", c[i]); \ } while (0); #ifdef VERBOSE void monoseed_trace(int iter, int seed, void *chksum_loc, void *chksum_rem) { printf("%d> iter=%4d, seed=%12d, chksum_local=", myproc, iter, seed);
int min_payload; int max_payload; int maxdepth = 0; char *tgtmem; void *msgbuf; gasnet_handle_t *handles; gasnet_valget_handle_t *vghandles; volatile gasnet_register_value_t regval = 5551212; #define hidx_ping_shorthandler 201 #define hidx_ping_medhandler 202 #define hidx_ping_longhandler 203 gasnett_atomic_t amcount = gasnett_atomic_init(0); void ping_shorthandler(gasnet_token_t token) { gasnett_atomic_increment(&amcount,0); } void ping_medhandler(gasnet_token_t token, void *buf, size_t nbytes) { gasnett_atomic_increment(&amcount,0); } void ping_longhandler(gasnet_token_t token, void *buf, size_t nbytes) { gasnett_atomic_increment(&amcount,0); } gasnet_handlerentry_t htable[] = { { hidx_ping_shorthandler, ping_shorthandler }, { hidx_ping_medhandler, ping_medhandler }, { hidx_ping_longhandler, ping_longhandler }
BARRIER(); \ start = ticktime(); \ preop; \ for (i=0; i < _iters; i++) { op; } \ postop; \ end = ticktime(); \ BARRIER(); \ if (((const char *)(desc)) && ((char*)(desc))[0]) \ report((desc), tickcvt(end - start), iters); \ else report(#op, tickcvt(end - start), iters); \ } #define TIME_OPERATION(desc, op) TIME_OPERATION_FULL(desc, {}, op, {}) char p[1]; gasnet_hsl_t hsl = GASNET_HSL_INITIALIZER; gasnett_atomic_t a = gasnett_atomic_init(0); gasnett_atomic32_t a32 = gasnett_atomic32_init(0); gasnett_atomic64_t a64 = gasnett_atomic64_init(0); int32_t temp = 0; gasnett_tick_t timertemp = 0; int8_t bigtemp[1024]; gasnet_handle_t handles[8]; /* ------------------------------------------------------------------------------------ */ void doit1(void) { GASNET_BEGIN_FUNCTION(); { int i; for (i=0; i<8; i++) handles[i] = GASNET_INVALID_HANDLE; }