Role of automatic differentiation in concurrent subspace optimization method