cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kasimanikumar
Observer
Observer
494 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?

1 Reply
hongh
Moderator
Moderator
443 Views
Registered: ‎11-04-2010

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