upc_cast

Date:

07-07-2014

NAME

upc_cast - converts pointer-to-shared to pointer-to-local

SYNOPSIS

#include <upc.h>
#include <upc_castable.h>

void *upc_cast(shared void *ptr);
ptr

The pointer to convert.

IMPLEMENTATION

Cray Linux Environment (CLE)

DESCRIPTION

The upc_cast function converts a pointer-to-shared to a pointer-to-local if possible. If not possible, a null pointer is returned. Pointers to data with affinity to the current thread always succeed. Null pointers-to-shared yield null pointers-to-local.

SEE ALSO

upc_castable(3c), upc_thread_info(3c).