mpiSqNodeSegmentUserDataSet
Declaration
int32_t mpiSqNodeSegmentUserDataSet(MPISqNode node, int32_t segment,
MPISqNodeSegmentUserData *data);
Required Header: stdmpi.h
Change History: Added in the 03.02.00
Description
Modules attached to a SQID node have a small section of non-volatile memory that can be used for any purpose by the user. mpiSqNodeSegmentUserDataSet changes the user data stored on a segment on a SynqNet node.
node | a handle to a SynqNet node object. |
---|---|
segment | the index of the slice/module attached to this SynqNet node. For more information, please see the Overview of MPI I/O. |
data | a pointer to the new user data. |
Return Values | |
---|---|
MPIMessageOK |
Sample Code
The following MPI code changes the contents on the non-volatile memory to a string:
MPISqNodeSegmentUserData nodeData; strncpy(nodeData.data, “test” , MPISqNodeUserDATA_CHAR_MAX); mpiSqNodeSegmentUserDataSet(sqNode1, 0,&nodeData);
See Also
mpiSqNodeSegmentUserDataGet | MPI Overview I/O: User Data | Overview of MPI I/O