Detecting array argument copies on subroutine calls

Detecting array argument copies on subroutine calls

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

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

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 - Intel Developer Support

Inicie sesión para dejar un comentario.