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

Memory debugging with ifc 9.x

andreasvelten
Beginner
595 Views

I have problems in my code that I suspect to be connected to array over- or underruns. In c I use Electric Fence to detect these kind of problems but this doesn't seem to work with fortran. I guess thats because my fortran arrays are not dynamically allocated. Is there any tool that helps me detect memory violations that I can use with the Intel Fortran compiler 9.1 (it should be either free or for well under 100 dollars)? Or is there maybe a compiler option that can help me here?

Andreas

0 Kudos
2 Replies
jimdempseyatthecove
Honored Contributor III
595 Views

Try using/check:bounds

This option is in the Run-time options.

This will check for subscript errors.

You also might want to use /RTCu

This checks for uninitialized variables.

Jim Dempsey

0 Kudos
Steven_L_Intel1
Employee
595 Views
Given this is Linux, the options are "-check bounds" and "-check uninitialized".
0 Kudos
Reply