XILINX_XRT variable is not set

0

Working my way through the walkthrough on this page:

Upon performing these steps:

$ cd $VITIS_DIR/examples/xilinx/hello_world            
$ make clean                                                                   
$ make run TARGET=sw_emu DEVICE=$AWS_PLATFORM all       

The last step gets me this error:

utils.mk:45: *** XILINX_XRT variable is not set, please set correctly and rerun. Stop

I see some mention of XILINX_XRT when I searched these forums, but not this exact error message, so thought I'd post here for any clues on what to do :)

Gurce
gefragt vor 3 Jahren1071 Aufrufe
3 Antworten
0

Hmm, ok, online I saw this thread:

https://forums.xilinx.com/t5/Vitis-Acceleration-SDAccel-SDSoC/SDAccel-2018-3-examples-Error-XILINX-XRT-is-not-defined/m-p/922598

It suggested that I could download this XRT thing manually from here:

https://www.xilinx.com/products/boards-and-kits/alveo/u200.html#gettingStarted

Ok, I'll give that a go... Though not sure why the AMI I used didn't have it from the get-go. Perhaps the AMI was an older one (from maybe a month ago? It has a "/opt/Xilinx/Vitis/2020.2/" path in it, so not the latest-and-greatest Vitis/Vivado)

Gurce
beantwortet vor 3 Jahren
0

Hi,

XILINX_XRT env var is setup when you source vitis_setup.sh scripts if XRT is installed on the host.

Are you running these steps on the FPGA Developer AMI? If so, can you re-run :

source vitis_setup.sh

If you are running these steps on the FPGA Developer AMI(AL2), XRT might not be pre-installed if you are using an older version and you can install it from the packages listed here: https://github.com/aws/aws-fpga/blob/master/Vitis/docs/XRT_installation_instructions.md

-Deep

Edited by: awsdeep on Aug 5, 2021 10:26 AM

Deep_P
beantwortet vor 3 Jahren
0

Ok, tried running "source vitis_setup.sh" again, still no sign of $XILINX_XRT being set.

I then read the page you suggested, grabbed the two rpms for Vitis 2020.2 and AL2.

Had to install these with "yum install" rather than "yum reinstall", as they weren't on my system at present.

Then ran the "source vitis_setup.sh" again, and finally got my $XILINX_XRT env var!

Then I tried building the hello_world example and it worked fine :)

PS. Looks like my email-address wasn't the right one for this account (had a typo). Is it possible to change it? (couldn't see an option in my profile settings)

Gurce
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen