/* $Source: /var/local/cvs/gasnet/udp-conduit/gasnet_core_fwd.h,v $ * $Date: 2007/03/18 01:10:44 $ * $Revision: 1.18 $ * Description: GASNet header for UDP conduit core (forward definitions) * Copyright 2002, Dan Bonachea * Terms of use are as specified in license.txt */ #ifndef _IN_GASNET_H #error This file is not meant to be included directly- clients should include gasnet.h #endif #ifndef _GASNET_CORE_FWD_H #define _GASNET_CORE_FWD_H #define GASNET_CORE_VERSION AMUDP_LIBRARY_VERSION #define GASNET_CORE_VERSION_STR _STRINGIFY(GASNET_CORE_VERSION) #define GASNET_CORE_NAME UDP #define GASNET_CORE_NAME_STR _STRINGIFY(GASNET_CORE_NAME) #define GASNET_CONDUIT_NAME GASNET_CORE_NAME #define GASNET_CONDUIT_NAME_STR _STRINGIFY(GASNET_CONDUIT_NAME) #define GASNET_CONDUIT_UDP 1 /* defined to be 1 if gasnet_init guarantees that the remote-access memory segment will be aligned */ /* at the same virtual address on all nodes. defined to 0 otherwise */ #if GASNETI_DISABLE_ALIGNED_SEGMENTS #define GASNET_ALIGNED_SEGMENTS 0 /* user disabled segment alignment */ #else /* udp-conduit supports both aligned and un-aligned */ #if defined(HAVE_MMAP) && !PLATFORM_ARCH_CRAYX1 #define GASNET_ALIGNED_SEGMENTS 1 #else #define GASNET_ALIGNED_SEGMENTS 0 #endif #endif /* conduit allows internal GASNet fns to issue put/get for remote addrs out of segment */ #define GASNETI_SUPPORTS_OUTOFSEGMENT_PUTGET 1 #define GASNET_MAXNODES AMUDP_MAX_NUMTRANSLATIONS #define _GASNET_NODE_T typedef uint16_t gasnet_node_t; /* conduits should define GASNETI_CONDUIT_THREADS to 1 if they have one or more "private" threads which may be used to run AM handlers, even under GASNET_SEQ this ensures locking is still done correctly, etc */ /* #define GASNETI_CONDUIT_THREADS 1 */ /* define to 1 if your conduit may interrupt an application thread (e.g. with a signal) to run AM handlers (interrupt-based handler dispatch) */ /* #define GASNETC_USE_INTERRUPTS 1 */ /* override default error values to use those defined by AMUDP */ #define _GASNET_ERRORS #define _GASNET_ERR_BASE 10000 #define GASNET_ERR_NOT_INIT 1 #define GASNET_ERR_RESOURCE 3 #define GASNET_ERR_BAD_ARG 2 #define GASNET_ERR_NOT_READY (_GASNET_ERR_BASE+4) #define GASNET_ERR_BARRIER_MISMATCH (_GASNET_ERR_BASE+5) /* this can be used to add conduit-specific statistical collection values (see gasnet_trace.h) */ #define GASNETC_CONDUIT_STATS(CNT,VAL,TIME) #define GASNETC_TRACE_FINISH() gasnetc_trace_finish() extern void gasnetc_trace_finish(); #define GASNETC_FATALSIGNAL_CALLBACK(sig) gasnetc_fatalsignal_callback(sig) extern void gasnetc_fatalsignal_callback(int sig); extern void _gasnetc_set_waitmode(int wait_mode); #define gasnetc_set_waitmode(wait_mode) _gasnetc_set_waitmode(wait_mode) #endif