Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

track memory allocation

diedro
Beginner
576 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
576 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.

0 Kudos
diedro
Beginner
576 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

0 Kudos
Steve_Lionel
Honored Contributor III
576 Views

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

0 Kudos
Reply