AMS_Memory_get_field_info

Get fields attributes object field.

Synopsis

int AMS_Memory_get_field_info(AMS_Memory mem, char *name, void **addr, int *len, AMS_Data_type *dtype,
                              AMS_Memory_type *mtype, AMS_Shared_type *stype, AMS_Reduction_type *rtype)

Input Parameters

mem
the memory object
name
the field name

Output Parameters

addr
address of memory
len
length of the memory
dtype
AMS Data type: AMS_INT, AMS_FLOAT, AMS_DOUBLE, or AMS_STRING
mtype
AMS Memory type: AMS_READ, AMS_WRITE, or AMS_READ_WRITE
stype
AMS Shared type: AMS_COMMON, AMS_DISTRIBUTED or AMS_REDUCED
rtyep
AMS Reduction type: AMS_SUM, AMS_MAX, AMS_MIN, or AMS_NONE

Location:amsacc.c