Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29283 Discussions

Detecting array argument copies on subroutine calls

Keith_R_
Novice
602 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
602 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