Improving Performance And Energy Efficiency Of Gpus Through Locality Analysis