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

Procedure Pointer

abhimodak
New Contributor I
744 Views

Hi Steve

I am wondering if "procedure pointer" will be supported in next release of the compiler. v10 does not support it although Cray pointer is there. we need to develope of non-intel compiler platform, the compiler there is moer Fortran 2003 compliant. Sadly, it does not support the cray pointer.

Abhi

0 Kudos
4 Replies
Steven_L_Intel1
Employee
744 Views
We are working on the implementation of procedure pointers now. I can't predict when it will appear in a "compiler near you". What other compiler are you using that supports procedure pointers?
0 Kudos
jimdempseyatthecove
Honored Contributor III
744 Views

Abhi,

From your brief description it would seem like you are using an Intel platform (Mac OS/X?) to develop (debug-edit-debug...) for a non-Intel platform. Then when the application is in a sufficiently good working state, compile for the non-Intel platform using the non-Intel compiler on the target platform. During this Intel based development phase you would like to have use of "procedure pointer".

As a work around, available under Windows, and therefore likely available under Linux/OS/X, would be to declare the sharable datain a module as a user defined type and have the module contain a pointer to the user defined type. Then, in place of using ALLOCATE to obtain the memory perform the allocation usinga Memory Mapped File (availableunder Windows and hopefully under Linux). Your "application" canexist as multiple procedureson your system each of whichcan then have multiple pointers, one for its data and other pointers foreach of the otherrunning procedures. This technique would best on a single SMP system. With a small amount of programming on your part might get you what you need or at least close enough to what you need for development.

Jim Dempsey

0 Kudos
abhimodak
New Contributor I
744 Views

Hi Steve and Jim

Thanks a lot for your responses. I will try to implement Jim's idea.

The current scenario for me is that I need to write code that Intel and IBM XL Fortran can handle (the 'other platform' being AIX). Steve, I find that IBM XL Fortran (version 11) is a bit more Fortran 2003conforming than Intel 10. This particular instance is not a big problem but I hope the next version of the compiler comes out soon.

0 Kudos
Steven_L_Intel1
Employee
744 Views
Yes - xlf is the furthest along towards F2003 - helped by a large government funded contract.
0 Kudos
Reply