fixed compilation with CUDA
fix build without gpu module with cuda
Merge pull request #784 from jet47:fix-gpu-build
Merge pull request #786 from cuda-geek:fix-build-gpu-off-cuda-on