Cannot run AFI on F1 instance

0

Hi there,

I followed all the steps in the guideline provided by Xilinx and tried to run AFI on F1 instance (I followed https://github.com/Xilinx/SDAccel-Tutorials/blob/master/docs/aws-getting-started/CPP/STEP2.md)

When I ran ./<project_name.exe> <awsxclbin_file> , I first received

Segmentation fault (core dumped) error.

And for all runs after it, I received

\[XRT] ERROR: unable to issue xclExecBuf

../src/host.cpp:103 Error calling cl::Program program(context, devices, bins, NULL, &err), error code is: -6

Any help is appreciated!

已提问 4 年前296 查看次数
5 回答
0
已接受的回答

Hello, by any chance have you tried clearing/resetting the FPGA with the 'fpga-clear-local-image' command, then rerunning the executable to reload it?

https://github.com/aws/aws-fpga/blob/master/sdk/userspace/fpga_mgmt_tools/README.md

The tutorial mentioned just runs the host executable, so there shouldn't be a need to add the *.awsxclbin as an argument as it should be pulled in by the host code.

已回答 4 年前
0

Another thing to note while clearing the slot is that you will have to restart the mpd service after doing that.

sudo systemctl restart mpd

This lets XRT load the default AFI to be able to bind the XOCL driver to the correct device ID.

-Deep

Deep_P
已回答 4 年前
0

When I ran this command, it gives an error.

已回答 4 年前
0

It needed the .awsxclbin, otherwise, it throws an error.

已回答 4 年前
0

We use Amazon FPGA Image (AFI) for the binary that is loaded on the FPGA.
It is the compiled FPGA code that is loaded into an FPGA in AWS for performing the Custom Logic (CL) function created by the developer. AFIs are maintained by AWS according and associated with the AWS account that created them. The AFI includes the CL and AWS FPGA Shell. An AFI ID is used to reference a particular AFI from an F1 instance.
An awsxclbin includes the AFI which makes it different from xclbin. Here is the step where it is created documented in our end-to-end guide:
https://github.com/aws/aws-fpga/tree/master/Vitis#createafi

AWS
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则