fixed compilation warning for CUDA files

command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
Merge pull request #745 from jet47:fix-gpu-warnings