From 299975d34c371b4ecb070bbaeba4262b3ddef8d6 Mon Sep 17 00:00:00 2001 From: Yichao Yu <yyc1992@gmail.com> Date: Sat, 7 Jun 2014 08:29:04 -0400 Subject: [PATCH] remove m_kernel, add missing return.. --- src/c_wrapper/wrap_cl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/c_wrapper/wrap_cl.cpp b/src/c_wrapper/wrap_cl.cpp index b348b99f..442ef9cc 100644 --- a/src/c_wrapper/wrap_cl.cpp +++ b/src/c_wrapper/wrap_cl.cpp @@ -324,7 +324,8 @@ public: // types of AMD dev attrs divined from // https://www.khronos.org/registry/cl/api/1.2/cl.hpp #ifdef CL_DEVICE_PROFILING_TIMER_OFFSET_AMD - case CL_DEVICE_PROFILING_TIMER_OFFSET_AMD: DEV_GET_INT_INF(cl_ulong); + case CL_DEVICE_PROFILING_TIMER_OFFSET_AMD: + return DEV_GET_INT_INF(cl_ulong); #endif /* FIXME #ifdef CL_DEVICE_TOPOLOGY_AMD @@ -1698,9 +1699,6 @@ new_program(cl_program prog, program_kind_type progkind=KND_UNKNOWN) // {{{ kernel class kernel : public clobj<cl_kernel> { -private: - cl_kernel m_kernel; - public: PYOPENCL_DEF_GET_CLASS_T(KERNEL); kernel(cl_kernel knl, bool retain) -- GitLab