![]() So I am quite sure the problem comes with recent drivers. ![]() I downloaded the most recent installation (i.e., 1803) and these new problems bothered me a lot. Yesterday, due to some accident I have to reinstall Windows 10. I installed Windows 10 1709, CUDA and VS2015 previously (around half a year ago) without such problems. After all, VS is not as delicate as CUDA. When the two agree with each other, we can then refine by installing new drivers, adding new features of VS and/or upgrading Nsight. Since the problem I want to solve is to have CUDA integrate with VS, we can do installation on a simple basis (like old driver version or bare VS components). So if you want to use Nsight to debug CUDA, you have to install the latest driver AFTER CUDA is installed. Likewise, the CUDA 9.1 installer also installs NSight 5.4 which does not recognize the original 388.13, thinking the driver version is 0.0 and therefore fail the addWithCuda() function, even though the popups claim that NSight 5.4 works with 343.98 . Interestingly, Experience will complain there is no nVidia driver. If you are not sure, you can convince yourself that CUDA has successfully installed with VS even though there are many other directories of other VS versions by trying to new a project in VS. After completion, CUDA installer will launch Experience in which you can safely install the latest 397.31 driver. So the first thing after Windis installed afresh, is to install Visual Studio 2015 Update 3 immediately. To succeed in integrating CUDA with VS, you have to keep the original 388.13. If we update it to the latest 397.31 as is a natural practice, then no matter what you will do in the last two steps – how you try your best to make sure there is only one VS instance, whatever the version of VS is, whatever the version of CUDA is – you’ll surely fail. Nowadays people usually install Windows 10 version 1803, not version 1709 or even Windows 7. DO NOT UPDATE DRIVER! Let me repeat: DO NOT UPDATE DRIVER! It turns out that the very first step is wrong. As I said in the original question, the order I followed at first is: driver → Visual Studio → CUDA. Of course these do not mean CUDA installer detects VS instances correctly, so is it safe to remove all directories not belonging to VS2015?Īfter many trials in a sleepless night, I finally succeeded in installing everything together. ![]() For example, the filtered results of “Visual Studio” in Programs and Features are as follows:Īnd Nsight only find one instance of VS – 2015: I have only one instance of Visual Studio installed. PS: I checked some of previous threads of the same problem. Thank you.Ī link to the output of msinfo32 is: Dropbox - File Deleted So, how to fix the failure of CUDA installer to integrate with Visual Studio? Is there any log I can troubleshoot? If you need any info please let me know. I have tried both network and local installer, version 9.1 and 9.0, but got the same problem. VS builds and runs OpenGL program correctly so I can’t find any fault with it. The installation configuration of Visual Studio is the default plus C and common tools. The order of installation is: driver → Visual Studio → CUDA (we cannot change the order of VS and CUDA otherwise CUDA installer would complain). I’ve tried to change the line in host_config.h file to the following: # if _MSC_VER 1912Īs a result, there was no unsupported error, however, the new errors “expression must have a constant value” show up in the file type_trails.I tried to install CUDA 9.1 (downloaded from ), but the Base Installer always reports failure at Visual Studio Integration (other components are not installed yet). I am aware of topic, and in the host_config.h file everything is fine. Toolkit\cuda\v9.0\include\crt\host_config.h 133 Only the versions 2012, 2013, 20 are supported! ver2 I am not able to build even a default project (the one with vector addition), as the following error shows up: Severity Code Description Project File Line Suppression StateĮrror C1189 #error: - unsupported Microsoft Visual Studio version! ![]() I am using the latest CUDA toolkit Cuda compilation tools, release 9.0, V9.0.176. I’ve recently updated my VS2017 (the current version is 15.5.0 according to the VS installer).
0 Comments
Leave a Reply. |