Performance Analysis and Tuning for General Purpose Graphics Processing Units