UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer kasimanikumar
Observer
152 Views
Registered: ‎03-26-2019

Error when using CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE

I'm facing an error 

ERROR: buffer (5) is not resident in device (0)
AES.exe: /home/kasi/XRT/src/runtime_src/xocl/core/refcount.h:51: void xocl::refcount::retain(): Assertion `m_refcount>0' failed.

when instantiating my queue with the CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE flag like this:

cl::CommandQueue q(context, device, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE | CL_QUEUE_PROFILING_ENABLE);

The full application works fine (but sequentially and unparallelized across CUs) without that flag.

Any idea what the error might be?

0 Kudos
1 Reply
Moderator
Moderator
101 Views
Registered: ‎11-04-2010

Re: Error when using CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE

1. Could you post your complete host code?

2. Please try to add some printf to show which line of code issues the error. 

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos