Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner

track memory allocation

Dear all,

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

0 Kudos
3 Replies
Highlighted
Valued Contributor I

No, to my knowledge this is

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.

0 Kudos
Highlighted
Beginner

Dear all, Dear Juergen R,

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,

diedro

0 Kudos
Highlighted
Black Belt

Intel Inspector XE has

Intel Inspector XE has explicit features for this, including memory growth monitoring and leak detection. You can get a 30-day free trial.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos