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
질문됨 3년 전1071회 조회
3개 답변
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
답변함 3년 전
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
답변함 3년 전
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
답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠