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

forrtl: severe (157): Program Exception - Access violation

Svein-Atle_Engeseth
905 Views
The code below generates the message shown in the subject window. The indices used are within the matrix dimensions. The matrix A_R is allocated and the statement WRITE(6,*) A_R executes correctly, but something in the loop goes wrong. The program does not reach PRINT*,"DONE". The program is compiled with optimization. It runs when compiled with debug, but generates messages of the form: "An array temporary is generated ..." Any idea? This is parts of the ifort.cfg file: /Og /G7 /O3 /Qipo Program segment: PRINT*,"GENERAL MATRIX",M,N,NRHS PRINT*,"IS A_R ALLOCATED? ",ALLOCATED(A_R) WRITE(6,*) A_R PRINT*,"HALFWAY" DO I=1,M WRITE(6,*) A_R(I,:) END DO PRINT*,"DONE" I am sorry about the appearance of this text, but I am not able to get the new lines where I want them. compiler version: 10.1.011 Svein-Atle Engeseth
0 Kudos
4 Replies
Steven_L_Intel1
Employee
905 Views
Does adding /heap-arrays help? How large is the array?
0 Kudos
Svein-Atle_Engeseth
905 Views
Hi, I have set /heap-arrays and /F20000000 in the ifort.cfg-file. The array is small, 3x3 or 4x4. Thanks SAE
0 Kudos
Svein-Atle_Engeseth
905 Views
Hi, I forgot the /QxT. When I remove either the /heap-arrays or the /QxT the program runs without error. SAE
0 Kudos
Steven_L_Intel1
Employee
905 Views
Please report the problem to Intel Premier Support.
0 Kudos
Reply