void convolve3d_m_cl(const MCLMatrix3D::Ptr& video, const MCLMatrix3D::Ptr& kernel, MCLMatrix3D::Ptr& output, unsigned int algorithm) { assert(algorithm < NUM_ELEM(convolution_algorithm_cl)); if (convolution_algorithm_cl[algorithm](video, kernel, output)) { debug_algorithm_used_cl = algorithm; return; } throw_runtime_error("Unable to find convolution algorithm"); }
void ocl_data_array::verify_if_accessible() const { if (isConst) throw_runtime_error("Const data array is not accessible."); }