Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29296 Discussions

Host associated allocatable array not seen in the debugger

abhimodak
New Contributor I
499 Views
Hi

The allocatable array B in the snippet cannot be seen through the debugger when using 11.1.065. I am using VS2005 Professional on WinXP64 Professional.

In my actual case, along with the allocatable arrays, some other scalar variables from the host are also not visible. But I haven't been able to reproduce in a snippet form yet.

Abhi

=======

Module OM
Implicit None
Integer :: JJ = 5
Contains
Subroutine Method(n, A)
Implicit None
Integer, Intent(IN) :: n
Real, Intent(IN) :: A(n,JJ)
Integer :: i, m
Real, Allocatable :: B(:)
Character(2) :: Key
Key = 'TT'
i = 1
Allocate(B(n))
B = 0.0
Call Process(Key)
Contains
Subroutine Process(Key)
Implicit None
Character(*), Intent(IN) :: Key
Print *, "In here."
Print *, JJ, i
Print *, B ! Here B cannot be seen in the debugger.
Print *, A
Print *, n
End Subroutine Process
End Subroutine Method
End Module OM

Program Test_HostAssociation

Use OM

Implicit None

Real :: A(4,5)

A = 1.0

Call Method(Size(A,1), A)

End Program Test_HostAssociation

=======
0 Kudos
1 Reply
Steven_L_Intel1
Employee
499 Views
Try using the "Stack frame" pulldown to select the host frame - the variable should be visible there. I agree that it would be nice if you could see all accessible variables.
0 Kudos
Reply