Compatibility with Visual Studio optimization

I didn’t see your codes example and can’t shed any idea on this . You could try reporting us a ticket Getting Help with CUDA NVCC Compiler