if opencl failed, minimization switches to pure ruby