unidimensional minimization uses opencl if allowed