We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee4fe59 commit 0c35456Copy full SHA for 0c35456
sycl/source/detail/queue_impl.cpp
@@ -16,8 +16,10 @@ namespace sycl {
16
namespace detail {
17
template <> cl_uint queue_impl::get_info<info::queue::reference_count>() const {
18
cl_uint result = 0;
19
- CHECK_OCL_CODE(clGetCommandQueueInfo(m_CommandQueue, CL_QUEUE_REFERENCE_COUNT,
20
- sizeof(result), &result, nullptr));
+ if (!is_host())
+ CHECK_OCL_CODE(clGetCommandQueueInfo(m_CommandQueue,
21
+ CL_QUEUE_REFERENCE_COUNT,
22
+ sizeof(result), &result, nullptr));
23
return result;
24
}
25
0 commit comments