cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Contributor
Contributor
184 Views
Registered: ‎11-18-2020

Profiling kernel

Hi all,

I created a kernel and i run it on the board, but i noticed that the execution time of the kernel is not the same showed in the post-cosimulation with vitis hls. How can i perform a profiling of the kernel when running on the board?

0 Kudos
Reply
6 Replies
Xilinx Employee
Xilinx Employee
142 Views
Registered: ‎06-24-2020

Hi @Davix ,

In order to enable profiling, you can just add the following in the xrt.ini -

[Debug]

profile=true

 

In order to observe the waveforms as well you may add "timeline_trace=true" as well. Both the infos will be captured in a run_summary file which can be observed using the following -

vitis_analyzer <name of the run_summary file>

0 Kudos
Reply
Contributor
Contributor
123 Views
Registered: ‎11-18-2020

Hi @ViratAgarwal ,

I read this from the vitis document. It says that using Vitis IDE the xrt.ini file is automatically generated, but i cannot find this file in the workspace. How i can solve this problem?

0 Kudos
Reply
Xilinx Employee
Xilinx Employee
109 Views
Registered: ‎06-24-2020

Hi @Davix ,

Kindly follow the following steps to set modify the xrt.ini in the Vitis IDE-

1. Create the IDE project and build it for the respective flow.

2. Select Run Configurations in the drop down menu next to the Run button.

3. System Project Debug -> <project_name>-Default ->Main -> Xilinx Runtime Profiling -> Edit -> Select the required option (I guess it will be OpenCL detailed profile summary and timeline trace in your case) -> Apply -> Run.

These settings will be reflected in the generated xrt.ini (Observable in the xrt.ini present in the <Project_name>-Default_<project_name> dropdown) and create a Run summary which includes the data of the timeline trace.

In order to observe the timeline_trace follow the following steps-

1. Go to the Assistant and open the <Project_name> [Host] dropdown

2. Select the dropdown of the flow you are running for -> Double click the Run_Summary (xclbin) option.

3. A Vitis Analyzer window will pop up and all the info in the run summary can be observed using that. The Timeline trace can be observed under the Application Timeline section of the same.

0 Kudos
Reply
Contributor
Contributor
108 Views
Registered: ‎11-18-2020

I'm stuck at point 3 of the first part. When i run it shows an error : "Could not connect to host '192.168.0.1' specified in the target 'Linux Agent'

0 Kudos
Reply
Xilinx Employee
Xilinx Employee
97 Views
Registered: ‎06-24-2020

Hi @Davix ,

I am not sure the cause of the issue. Can you please retry once.

0 Kudos
Reply
Contributor
Contributor
63 Views
Registered: ‎11-18-2020

@ViratAgarwal I tryied again, but the error shown is the same. What should be the IP of the linux agent?

0 Kudos
Reply