upc_alloc

Date:

09-23-2013

NAME

upc_alloc - Allocates shared space

SYNOPSIS

#include <upc.h>

shared void *upc_alloc(size_t nbytes);

IMPLEMENTATION

Cray Linux Environment (CLE)

DESCRIPTION

The upc_alloc function allocates shared space of at least nbytes bytes with affinity to the calling thread. It is similar to malloc() except that it returns a pointer-to-shared value. It is not a collective function. If nbytes is zero, the result is a null pointer-to-shared.

SEE ALSO

upc_all_alloc(3c), upc_free(3c), upc_global_alloc(3c)