Vitis AI Profiler Usage - 1.4 English

Vitis AI User Guide (UG1414)

Document ID
UG1414
Release Date
2021-07-22
Version
1.4 English

Manage uploaded xat files

Click Manage Uploaded Files on front page, to see a file management page where you can find the uploaded .xat files.

All items are ranked by uploaded time, so that files could find easily.

  • Click on the ID number will jump to the report
  • Click on the file name can download the uploaded .xat file
  • Click on the [x] will remove the file from server
Figure 1. Manage Uploaded xat

Example of VART based Program Profiling

  • # cd path-to-vart
  • Setup environment
  • Build this sample

From the source code, TopK and softmaxtask will be done by CPU, and you want to check the performance of these two functions.Write the name of these two functions to trace_custom list, and save this as trace_resnet50_vart.json.

For edge devices:

```json
{
  "options": {
	  "runmode": "normal",
	  "cmd": "./resnet50 model_dir_for_zcu104/resnet50.elf",
	  "output": "./trace_vart_resnet50.xat",
	  "timeout": 3
  },
  "trace": {
	  "enable_trace_list": ["vart", "opencv", "custom"]
  },
  "trace_custom": [ "TopK", "CPUCalcSoftmax"]
}

```

For alveo devices, this sample uses xmodel, so it will have a different launch command.

```json
{
  "options": {
	  "runmode": "normal",
	  "cmd": "./resnet50 model_dir_for_U50/resnet50.xmodel",
	  "output": "./trace_vart_resnet50.xat",
	  "timeout": 3
  },
  "trace": {
	  "enable_trace_list": ["vart", "opencv", "custom"]
  },
  "trace_custom": [ "TopK", "CPUCalcSoftmax"]
}
```
  • Start a trace
    # vaitrace -c trace_resnet50_vart.json
  • Upload trace_vart_resnet50.xat to Vitis AI Profiler and check the report
Figure 2. performance_resnet50_vart