- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does adding /heap-arrays help? How large is the array?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have set
/heap-arrays and
/F20000000 in the ifort.cfg-file.
The array is small, 3x3 or 4x4.
Thanks
SAE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I forgot the /QxT.
When I remove either the /heap-arrays or the /QxT
the program runs without error.
SAE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please report the problem to Intel Premier Support.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page