Abstract:A parallelized implementation of automatic differentiation that derives from the problem of bundle adjustment is proposed, which is based on OpenCL parallel computing framework. Reverse mode of automatic differentiation is more efficient to compute the derivatives of functions with multiple parameters, which is the case of computing the Jacobian matrix in bundle adjustment problem. Under the framework of OpenCL, C/C++ style function construction and topological sorting based computational sequence generation are implemented on the host side. On the device side, function values and derivatives are computed in parallel according to computational sequence. Large scale bundle adjustment datasets are used to evaluate the proposed implementation. The result shows that our implementation runs about 3.6 times faster than Ceres Solver which utilizes OpenMP parallel programming model.