Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

track memory allocation

diedro
Beginner
174 Views

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
Juergen_R_R
Valued Contributor I
174 Views

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.

diedro
Beginner
174 Views

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

Steve_Lionel
Black Belt Retired Employee
174 Views

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

Reply