cray_upc_type_size
- Date:
03-29-2013
NAME
cray_upc_type_size - Get size in bytes of a UPC reduction type
SYNOPSIS
#include <upc_collective_cray.h>
cray_upc_return_t
cray_upc_type_size (cray_upc_dtype_t dtype, size_t *nbytes);
DESCRIPTION
The cray_upc_type_size function stores the number of bytes in a UPC reduction type in the provided size_t variable. The size matches the result of applying the sizeof operator to the corresponding C type (see cray_upc_dtype_t(3c)).
RETURN VALUES
The cray_upc_type_size function returns CRAY_UPC_SUCCESS if it successfully stored the size of the type in *nbytes, or CRAY_UPC_ERROR if an error occurred.
SEE ALSO
cray_upc_dtype_t(3c), cray_upc_op_create(3c), cray_upc_user_fun(3c)