upc_global_alloc

Date:

03-29-2013

NAME

upc_global_alloc - Allocates shared space

SYNOPSIS

#include <upc.h>

shared void *upc_global_alloc(size_t nblocks, size_t nbytes);

IMPLEMENTATION

Cray Linux Environment (CLE)

DESCRIPTION

The upc_global_alloc function allocates nblocks * nbytes of shared space compatible with the declaration:

shared [nbytes] char[nblocks * nbytes]

The upc_global_alloc function is not a collective function. If called by multiple threads, all threads that make the call get different allocations. If nblocks*nbytes is zero, the result is a null pointer-to-shared.

SEE ALSO

upc_all_alloc(3c), upc_alloc(3c), upc_free(3c), upc_local_alloc(3c)