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 45ea54f commit 2bd90c6Copy full SHA for 2bd90c6
include/boost/compute/kernel.hpp
@@ -267,7 +267,7 @@ class kernel
267
void set_arg_svm_ptr(size_t index, void* ptr)
268
{
269
#ifdef CL_VERSION_2_0
270
- cl_int ret = clSetKernelArgSVMPointer(m_kernel, index, ptr);
+ cl_int ret = clSetKernelArgSVMPointer(m_kernel, static_cast<cl_uint>(index), ptr);
271
if(ret != CL_SUCCESS){
272
BOOST_THROW_EXCEPTION(opencl_error(ret));
273
}
0 commit comments