cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
100 Views
Registered: ‎11-01-2019

BFS - [XRT] ERROR: Operation failed due to earlier error 'xclbin has not been loaded'

Hi.


I'm trying to run a BFS code (C, C++, OpenCL) belonging to the OpenDwarfs benchmark and I'm having problems.
I created a project and imported the files.

I don't know if binary_container should be created on compilation. I did it manually. Vitis listed me the 2 Kernels available in the code and I include them in the binary.

The code compiles without errors, but when I try to do a emulation-sw, I get the following:


------------------------------

FPGA was selected
Platform Chosen : Xilinx
Number of available devices: 1
Device Chosen : xilinx_aws-vu9p-f1_shell-v04261818_201920_2
Reading File
Read File
XRT build version: 2.3.0
Build hash: 9e13d57c4563e2c19bf5f518993f6e5a8dadc18a
Build date: 2020-02-06 15:08:44
Git branch: 2019.2
PID: 29367
UID: 0
[Wed Nov 11 00:00:21 2020]

EXE: /root/workspace/test04/Emulation-SW/test04
[XRT] ERROR: xclbin has not been loaded common_ocl.ocdBuildProgramFromFile() - Cannot open kernel file! bfs_kernel.aocx
[XRT] ERROR: Operation failed due to earlier error 'xclbin has not been loaded'
[XRT] ERROR: Operation failed due to earlier error 'xclbin has not been loaded'
[XRT] ERROR: Operation failed due to earlier error 'xclbin has not been loaded'
[XRT] ERROR: Operation failed due to earlier error 'xclbin has not been loaded'
[XRT] ERROR: Operation failed due to earlier error 'xclbin has not been loaded'
Copied Everything to device memory
Device type is FPGA
Kernel file bfs_kernel.aocx: Defines = -DOPENCL -I.
[XRT] WARNING: Profiling may contain incomplete information. Please ensure all OpenCL objects are released by your host code (e.g., clReleaseProgram()).

------------------------------


Can anyone explain to me what's going on?
If you can indicate a document, reference, idea ...

Any help is welcome.


Thanks.

0 Kudos
1 Reply
Highlighted
Xilinx Employee
Xilinx Employee
41 Views
Registered: ‎01-11-2011

I believe the expectation is that the program is in the .xclbin format (or .awsxclbin for AWS). You mentioned you compiled the binary manually and I see the extension as .aocx. Have you tried letting Vitis do the compilation to output the correct format?

-------------------------------------------------------------------------
Please don’t forget to reply, kudo, and accept as solution!
-------------------------------------------------------------------------
0 Kudos