fixed two warnings in gpu sources (-Wshadow, -Wno-sign-promo)
Merge pull request #2339 from jet47:gpu-warnings