cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
312 Views
Registered: ‎05-18-2020

--profile_kernel in Vitis IDE 2020.1

Jump to solution

I'm trying out profiling in Vitis IDE 2020.1, on the Vitis example "partition_cyclicblock". 

I managed to get the HW and SW emulation to build and run. 

I am most interested in the timing of the transfers host-to/from-kernel. However, the data in the Vitis Analyzer appears incomplete. Specifically, Profile Summary -> Kernel Data Transfers (and some other places) says: 

No Data. Use 'v++ -l --profile_kernel data:all:all:all' to enable profiling kernel data transfers and execution. 

How and where exactly can I specify this in Vitis IDE?

(have tried a couple times unsuccessfully; xrt.ini has [Debug] profile=true)

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
233 Views
Registered: ‎07-16-2008

I gave it a try.

1. enable --profile_kernel data:all:all:all in V++ kernel linker: Miscellaneous Other flags

2. set the Run Configuration as Hong suggested

3. build and run HW-Emulation

By double-clicking the Run Summary in Assistant window, I can invoke Vitis Analyzer and view Timeline report.

assistant_view.PNG

 

hw_emu_timeline.PNG

 

Is it what you're looking for?

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

5 Replies
Highlighted
Moderator
Moderator
296 Views
Registered: ‎11-04-2010

Please try to set the option as the snapshot.

 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
profile.png
Highlighted
Visitor
Visitor
259 Views
Registered: ‎05-18-2020

Thank you for your reply. 

I already have these settings just like you suggest. 

I've also tried inserting "--profile_kernel data:all:all:all" in Properties for (test project), Configuration: Emulation-HW. V++ kernel linker: Miscellaneous Other flags

... so that V++ Compiler Command Line for the matmul block in Binary container settings reads: 

${XILINX_VITIS}/bin/v++
--target hw_emu
--link
--config common-config.cfg
--config matmul-link.cfg
--profile_kernel data:all:all:all
-o"matmul.xclbin" matmul.build/matmul_partition.xo

which appears correct to me?

Or is it perhaps that the timings I seek are not displayed in HW emulation, only in actual HW run (though the message doesn't seem to suggest this)?  

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
234 Views
Registered: ‎07-16-2008

I gave it a try.

1. enable --profile_kernel data:all:all:all in V++ kernel linker: Miscellaneous Other flags

2. set the Run Configuration as Hong suggested

3. build and run HW-Emulation

By double-clicking the Run Summary in Assistant window, I can invoke Vitis Analyzer and view Timeline report.

assistant_view.PNG

 

hw_emu_timeline.PNG

 

Is it what you're looking for?

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------

View solution in original post

Highlighted
Visitor
Visitor
190 Views
Registered: ‎05-18-2020

Thank you for your response. 

I think the Application Timeline of the simulation was available before. It was just that certain above-mentioned profiling data were missing.

After repeating the steps I no longer get the "No data" notices. Though I'm not sure what was wrong, because I think I haven't changed anything relevant in the last attempt. One difference was that after right-clicking Emulation-HW and selecting Run I chose + OpenCL Application, which produced another simulation result test-launch. But now also test-Default does not have the "No data" notices. 

So the question is somehow solved. 

I can't find an explanation what the (TCF) Run options are intended for, I understand a different debugger is used, but the results appear similar. 

0 Kudos
Highlighted
Participant
Participant
139 Views
Registered: ‎09-09-2019
For my case, I did not see "Run Summary" in the Vitis IDE, but both timeline_trace.csv and profile_summary.csv are already generated under the relevant folder--I can run command line like vitis_analyzer *.csv to open them.
adding "--profile_kernel data:all:all:all" into Makefile (or add in IDE) are necessary, otherwise you can not see kernel timing.
0 Kudos