I would like to know if there is sum function in FORTRAN in order to track the memory allocation, something like call CPU_TIME but for the memory.
This because I would like to show how the memory allocation changes with MPI comparing with standard single core program.
Thanks a lot
No, to my knowledge this is not possible. The concept of memory is the responsibility of the OS, not of the Fortran processor. Particularly, for MPI that would have been communicated via the MPI runtime library. In the best of all worlds, it could be an interface to an OS function. But this does not exist.
Dear all, Dear Juergen R,
Thanks for the quick answer.
Due to the fact that there are no such function, do you know if there are some program able to to track memory allocation in my code?
Thanks a lot,