Hi mahmoodn,
Welcome to the MSDN forum.
Refer to your description, please check this doc:
CUDA Installation Guide for Microsoft Windows
Follow the detail guide steps from the above doc, make sure your OS meet the system requirement, verify the system has a CUDA-capable GPU and install the NVIDIA
CUDA Toolkit.
To verify the installation, the version of the CUDA Toolkit can be checked by running
nvcc -V in a Command Prompt windows (Start > All Programs > Accessories > Command Prompt). You can also compile and run some of the included sample programs to have more tests.
If you still meet other compile issues about CUDA, please redirect to this appropriate forum:
https://devtalk.nvidia.com/ to seek for a better support, since our forum is to discuss the VS IDE and CUDA is a third-party software, thank you for your understanding.
Best regards,
Sara
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any
compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com