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

Detecting array argument copies on subroutine calls

Keith_R_
Novice
1,530 Views
I'd like to address some performance issues with a F90 code. In particular I wish to check whether temporary copies are being generated for certain allocated pointer arrays which are passed as arguments to subroutines with assumed-size or explicit shape dummy arguments. The intention is to pass contiguous blocks of memory in all cases, but it is possible that the compiler might not detect this.

Is there any compile- or run-time option which might be used to test this, either with ifc for linux, or on some other platform.

Keith Refson
0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,530 Views
Intel Fortran does not currently offer this feature. It may appear in a future version. Compaq Visual Fortran for Windows does do this, optionally generating a run-time informational diagnostic if an argument temp is created.

Steve
0 Kudos
Reply