Compute approximated gradients in parallel.