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

Does Intel Fortran support HPF?

xianyao-chen
Beginner
763 Views
Hi,

Can any one tell me if Intel Fortran support HPF programing?
I have an experience with the following code:

real, dimension(1000,1000) :: A

forall (i=1:1000,j=1:1000)
A(i,j) = i*j
end forall

Though using ifort can compile the code, it will lead to stack overflow run time error even if using /F40960000 compile option. However, using pgf90 or pghpf, everything is ok.

All experiments are carried out in Windows system.

Thanks in advance.

Xianyao Chen
0 Kudos
3 Replies
Steven_L_Intel1
Employee
763 Views
While Intel Fortran does not support all of HPF, it does have many features from HPF including FORALL, as extended in Fortran 95. Large array operations sometimes need to make temporary copies of arrays, and these are placed on the stack. I don't recognize the option you are using - I would typically use /link /stack:10000000 or something like that.
0 Kudos
xianyao-chen
Beginner
763 Views
Hi, Steve,

Thanks. The option /F10000000 is one I learned from Intel Premier support. Acturally, I can not find it in the user guide of Intel Fortran, however, it does work to increase stack used by program.

I also try the option /link /stack:10000000 and I have increased the stack to more than 400Mb, but it still leads to the error of stack overflow.

Xianyao Chen
0 Kudos
Steven_L_Intel1
Employee
763 Views
I would suggest sending an example to Intel Premier Support.
0 Kudos
Reply