fixed two warnings in gpu sources (-Wshadow, -Wno-sign-promo)