I use templated CUDA (Thrust library) functions in my main cpp file, so I need to compile it with CUDA NVCC.
I'm worried about how NVCC will treat my host code. How host code optimization happen? Does NVCC pass the host code to the MSVC compiler and process only CUDA related code?