diff --git a/include/boost/compute/exception/context_error.hpp b/include/boost/compute/exception/context_error.hpp index eeb387d8..ec8dc7c3 100644 --- a/include/boost/compute/exception/context_error.hpp +++ b/include/boost/compute/exception/context_error.hpp @@ -70,7 +70,7 @@ public: } /// Returns the size of the private info memory block. - const size_t get_private_info_size() const throw() + size_t get_private_info_size() const throw() { return m_private_info_size; } diff --git a/include/boost/compute/interop/opengl/acquire.hpp b/include/boost/compute/interop/opengl/acquire.hpp index 10af4338..b9259e0d 100644 --- a/include/boost/compute/interop/opengl/acquire.hpp +++ b/include/boost/compute/interop/opengl/acquire.hpp @@ -14,6 +14,7 @@ #include #include #include +#include #include namespace boost { @@ -22,7 +23,7 @@ namespace compute { /// Enqueues a command to acquire the specified OpenGL memory objects. /// /// \see_opencl_ref{clEnqueueAcquireGLObjects} -inline event opengl_enqueue_acquire_gl_objects(size_t num_objects, +inline event opengl_enqueue_acquire_gl_objects(const uint_ num_objects, const cl_mem *mem_objects, command_queue &queue, const wait_list &events = wait_list()) @@ -47,7 +48,7 @@ inline event opengl_enqueue_acquire_gl_objects(size_t num_objects, /// Enqueues a command to release the specified OpenGL memory objects. /// /// \see_opencl_ref{clEnqueueReleaseGLObjects} -inline event opengl_enqueue_release_gl_objects(size_t num_objects, +inline event opengl_enqueue_release_gl_objects(const uint_ num_objects, const cl_mem *mem_objects, command_queue &queue, const wait_list &events = wait_list()) diff --git a/include/boost/compute/kernel.hpp b/include/boost/compute/kernel.hpp index 27244c2e..caa1e79b 100644 --- a/include/boost/compute/kernel.hpp +++ b/include/boost/compute/kernel.hpp @@ -188,7 +188,9 @@ public: template T get_arg_info(size_t index, cl_kernel_arg_info info) const { - return detail::get_object_info(clGetKernelArgInfo, m_kernel, info, index); + return detail::get_object_info( + clGetKernelArgInfo, m_kernel, info, static_cast(index) + ); } /// \overload @@ -270,6 +272,8 @@ public: BOOST_THROW_EXCEPTION(opencl_error(ret)); } #else + (void) index; + (void) ptr; BOOST_THROW_EXCEPTION(opencl_error(CL_INVALID_ARG_VALUE)); #endif }