I would like to know is it possible to use NVIDIA Nsight Visual Studio Edition 2019.1 with older Cuda versions (9.2 in my case)? I don’t want to update my CUDA version as it will require tedious recompilation of some libraries.
Thanks for information!
It should be possible - I’ve verified that it works in small simple projects but this is not something that’s been tested extensively. The old installer can’t help you though since it doesn’t know about VS 2019 so you’ll need manually to copy these files:
- CUDA 9.2.props
- CUDA 9.2.targets
- CUDA 9.2.xml
The Visual Studio 2019 location for these files is (assuming Professional edition, you can modify accordingly):
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations
Alternatively you could copy them into your project directory, but you would need to edit your .vcxproj file to point to your custom path.
Also I forgot to mention you will get a compile error from host_config.h due to this line (line 133), so you’ll have to edit that header in order to build:
#if _MSC_VER < 1600 || _MSC_VER > 1913
#error – unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported!
#elif _MSC_VER == 1600 /* _MSC_VERION == 1600 */