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

Can the idb intel debugger find maxval, sum etc of variables during debugging?

Wee_Beng_T_
Beginner
220 Views
Hi,

I am now using the gui intel debugger. May I know if it has the ability to give me the maxval, sum etc of variables during interactive debugging.

I need to check that the output from my new and old are similar. It's very troublesome to keep on using print. Else is there any debugger that can accomplish the task, either in linux or also in windows?


Thanks!
0 Kudos
2 Replies
Ron_Green
Moderator
220 Views
You should be able to use most intrinsic functions in IDB expressions, including print expressions. However, there are some functions that may not work: functions that require special data types or alignment requirements.

Do you have a specific example where this is not working?

ron
0 Kudos
Wee_Beng_T_
Beginner
220 Views
Hi Ronald,

Supposed I have this simple code:

program array

implicit none

real :: a(10)

a=1.

...

print *, sum(a)

end program array

I can use the print command to print out the sum of a. However I wonder if I can use intel idb to show me the ans (sum(a)=10) as well?

I tried to input sum(a) in the evaluation and vector evaluation windows but they both can't work.

Thanks again!
0 Kudos
Reply