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. Could you post your complete host code?
2. Please try to add some printf to show which line of code issues the error.