CLKernel::CLKernel(SmartPtr<CLContext> &context, const char *name) : _name (NULL) , _kernel_id (NULL) , _context (context) , _work_dim (0) { XCAM_ASSERT (context.ptr ()); XCAM_ASSERT (name); if (name) _name = strdup (name); set_default_work_size (); }
CLKernel::CLKernel (const SmartPtr<CLContext> &context, const char *name) : _name (NULL) , _kernel_id (NULL) , _context (context) { XCAM_ASSERT (context.ptr ()); //XCAM_ASSERT (name); if (name) _name = strndup (name, XCAM_MAX_STR_SIZE); set_default_work_size (); XCAM_OBJ_PROFILING_INIT; }