# CUDA 9.2.88 not integrated into Visual Studio 2017 15.7.4

**URL:** <https://forums.developer.nvidia.com/t/cuda-9-2-88-not-integrated-into-visual-studio-2017-15-7-4/62796>\
**Category:** CUDA Setup and Installation\
**Created:** [July 1, 2018, 7:14pm UTC](https://forums.developer.nvidia.com/t/cuda-9-2-88-not-integrated-into-visual-studio-2017-15-7-4/62796 "2018-07-01T19:14:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BarryCuda](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@BarryCuda](https://forums.developer.nvidia.com/u/BarryCuda)\
**Post date:** [July 1, 2018, 7:14pm UTC](https://forums.developer.nvidia.com/t/cuda-9-2-88-not-integrated-into-visual-studio-2017-15-7-4/62796/1 "2018-07-01T19:14:42Z")

</div>

The installation of CUDA 9.2.88 proceeds without error, but, unlike 9.1, does not say anything about Visual Studio integration.

Opening the CUDA sample code Samples\_vs2017.sln and attempting to build gives “unsupported Microsoft Visual Studio version” errors due to \_MSC\_VER being outside the range required by host\_config.h. For VS2017 15.7.4, \_MSC\_VER is 1914, and host\_config requires it to be in the range 1600-1913.

As suggested by previous posters, I have tried changing the test in host\_config.h from

#if \_MSC\_VER \< 1600 || \_MSC\_VER \> 1913  
to  
#if \_MSC\_VER \< 1600 || \_MSC\_VER \> 1914

This allows me to compile the deviceQuery and some other samples (there are multiple copies of host\_config.h, and I only modified one). Running deviceQuery gives the correct result.

QUESTION 1: Will CUDA 9.2 support VS 2017 15.7.4, or future minor updates of Visual Studio? Since Microsoft started changing the MSC\_VER for every minor update, it breaks the hard-wired limit in host\_config.h, while it seems unlikely that CUDA will fail to work due to the change in VS.

For an existing MFC/C++ project, I want to add my CUDA files (.cu) to the project. These worked with previous versions of CUDA and Visual Studio, but with the current versions, I cannot add the files. Project / Add existing item does not give any error, but it does not add the .cu files to the list of source files.

QUESTION 2: What else do I need to do to get CUDA properly integrated into VS2017, so I can compile, link and run a project comprised mainly of C++ code, with some CUDA device code?

CUDA 9.2.88; Visual Studio 2017 15.7.4; 64-bit Windows 7

---

<div class="post-metadata">

**Author:** ![Robert\_Crovella](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/robert_crovella/32/14043_2.png) [@Robert\_Crovella](https://forums.developer.nvidia.com/u/Robert_Crovella)\
**Post date:** [July 1, 2018, 8:55pm UTC](https://forums.developer.nvidia.com/t/cuda-9-2-88-not-integrated-into-visual-studio-2017-15-7-4/62796/2 "2018-07-01T20:55:52Z")

</div>

CUDA 9.2 isn’t designed to work with anything beyond 15.6.x toolchain. CUDA 9.2 won’t officially support anything beyond that.

---

<div class="post-metadata">

**Author:** ![sercan\_cuda](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sercan\_cuda](https://forums.developer.nvidia.com/u/sercan_cuda)\
**Post date:** [September 13, 2018, 1:04pm UTC](https://forums.developer.nvidia.com/t/cuda-9-2-88-not-integrated-into-visual-studio-2017-15-7-4/62796/3 "2018-09-13T13:04:22Z")

</div>

I installed Visual Studio 15.6. However, it gives linker errors like that:

LNK2001 unresolved external symbol cudnnCreate
