Fixes for NO_CUDA and Pragma Warnings