mpiRecorderMemoryGet
Declaration
int32_t mpiRecorderMemoryGet(MPIRecorder recorder, void *dst, const void *src, int32_t count)
Required Header: stdmpi.h
Change History: Modified in the 03.03.00
Description
mpiRecorderMemoryGet copies count bytes of a Recorder's (recorder) memory (starting at address src) to application memory (starting at address dst).
Return Values | |
---|---|
MPIMessageOK |
Sample Code
/* recorderHighCountGet(...) demonstrates how to read recorder High Count directly through memory. mpiRecorderMemory(...) obtains the recorder control memory pointer. The pointer's address is then passed into mpiRecorderMemoryGet(...) to obtain the HighCount value. Note: MPIXmpRecorder *memory must be casted as (void *) in mpiRecorderMemory. */ int32_t recorderHighCountGet(MPIRecorder recorder, int32_t *highCount) { MPIXmpDataRecorder *memory; int32_t returnValue; /* Get recorder control memory pointer */ returnValue = mpiRecorderMemory(recorder, (void *)&memory); /* Get recorder HighCount */ if(returnValue == MPIMessageOK) { returnValue = mpiRecorderMemoryGet(recorder, highCount, &memory->HighCount, sizeof(&memory->HighCount)); } return returnValue; }