Changed GPU max calculation.