kernel templates working with new multi-gpu runtime