Parallel task for duality gap computation.