Improved occupancy calculation for AMD