Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4975 Discussions

group roofline analysis by loop

Lehmann__Marcus_Chri
1,566 Views

Dear Intel support team,

I have a function with several loops to analyze in the roofline chart.

The analyzed module is generated with the Julia language, which does insert several primitives (like + and *) as inlined functions into the loop body (see attached images).

Unfortunately this inlining scatters each single statement as a separate dot over the roofline chart.

Is there a way to group or ignore these inlined functions and have a single line for one loop?

regards,
Christian

0 Kudos
4 Replies
Ekaterina_G_Intel
1,566 Views

Hello Christian!

You can try collect Roofline "with CallStacks" checkbox enabled. Please note this collection could have overhead. In this case you should able to group call tree in one dot. 

Hope this helps,

Ekaterina

0 Kudos
Lehmann__Marcus_Chri
1,566 Views

Hello Ekaterina,

Thank you for your response.

I have enabled the checkbox, but could you please elaborate a little bit how the "grouping" is supposed to be set up in the user interface?

E.g. when I select a loop in the "survey" and switch to the "Code Analytics" Tab, then I see a preview of the roofline down below (see attached image), but still in the bigger "Roofline" chart (from above) there are the same scattered points (see attached image). [EDIT: I see a big plus where the currently selected loop's "working point" is supposed to be, so that's fine. The question is more whether it is possible to group all dots in the big roofline chart?]

Furthermore, I get an error which might be unrelated to this issue

advixe: Error: Cannot load data file `/home/christianl/prj/vildanMAjulia/leapfrog8/e000/hs003/data.1/tripcounts_1248486_0.tcs' (Data file is corrupted).

kind regards,
Christian

PS: the complete error log is

/opt/intel/advisor_2020.1.0.605410/bin64/advixe-cl -collect tripcounts -flop -stacks -project-dir /home/christianl/prj/vildanMAjulia/leapfrog8 -- /sbin/julia -JleapfrogSysimage.so runtests.jl
Intel(R) Advisor Command Line Tool
Copyright (C) 2009-2020 Intel Corporation. All rights reserved.
advixe: Opening result 25 % done                                               
advixe: Preparing frequently used data 16 % done                               
advixe: Preparing frequently used data 100 % done                              
advixe: Collection started. To stop the collection, either press CTRL-C or enter from another console window: advixe-cl -r /home/christianl/prj/vildanMAjulia/leapfrog8/e000/trc001 -command stop.
Nt = 500 (100 × 57 × 175)
variant: mex             , elapsed time: 16.07s
advixe: Opening result 47 % Loading 'tripcounts_1248486_1.tcs' file            
advixe: Error: Cannot load data file `/home/christianl/prj/vildanMAjulia/leapfrog8/e000/hs003/data.1/tripcounts_1248486_0.tcs' (Data file is corrupted).
advixe: Opening result 75 % done                                               
advixe: Opening result 100 % done                                              

Elapsed Time: 20,85s
Total CPU time: 19.13
Time in 14 vectorized loops: 15.1198
GFLOPS: 0,86

 

0 Kudos
Ekaterina_G_Intel
1,566 Views

Roofline with stacks provides total data functionality under different call chains. As a result you can collapse all inner calls to one dot on the chart. To get more details about Roofline with stacks you can read this article https://software.intel.com/content/www/us/en/develop/articles/roofline-with-callstacks.html?wapkw=roofline%20with%20callstacks   

Could you please expand toolbar item "Default: FLOAT" and select "With stacks", "Apply". If your collection was successful, you should see Roofline with stacks. 

0 Kudos
Lehmann__Marcus_Chri
1,566 Views

Ah, that did the trick!

Also thank you for referring to the blog post.

kind regards,
Christian

0 Kudos
Reply