Compute the number of iteration -- Nvidia