Running the Design on Hardware - 2022.2 English

Vitis Tutorials: AI Engine Development

Document ID
XD100
Release Date
2022-12-01
Version
2022.2 English

Once the Linux command line displays, go to the /mnt/sd-mmcblk0p1 partition and you should see the files you packaged into the sd_card.img. From here run the functional test:

./ps_app.exe --timesteps 1

You can also review the run.log for the messages written by the host application.

Next profile and compare the execution times for the C++ N-Body Simulator running on the A72 processor vs. the AI Engine N-Body Simulator design.

Estimated Time: 2 minutes

./ps_app.exe --timesteps 1 --profile

The output on the console should be something like this:

Initializing ADF API...
[INFO]: Cout Level set to [INFO]:
[INFO]: Log Level set to [MESSAGE]:
[INFO]: argv[0]=./ps_app.exe
[INFO]: argv[1]=--timesteps
[INFO]: argv[2]=1
[INFO]: argv[3]=--profile
==============================
Welcome to the NBODY Simulator
==============================
NUM PARTICLES: 12800
NUM TIMESTEPS: 1
==============================
[INFO]: Profiling turned on ...
[INFO]: Elapsed time for NBody Simulator executed in host application is 123.954 seconds
[INFO]: Starting iteraton 0 ...
[INFO]: Elapsed time for NBody Simulator executed in AI Engine is 0.004657468 seconds
[INFO]: TEST PASSED

Now run the executable to generate data to create the particle animation in the next module:

./ps_app_animate.exe --timesteps 300

Copy the animation_data.txt from the board to the Module_07_results/data/ folder if you want to create an animation out of it.

scp animation_data.txt <user>@<ip-address>:/<project-dir>/Module_07_results/data/.