Calculate queue size dynamically based on number of SPEs and PPEs