Creating new CUDA project with parallel nsight 2.2 - visual-studio-2010

I just update my Nsight from 2.1 to 2.2 and after that i've always got this when new CUDA 4.x project creates:
User canceled out of save dialog (Exception from HRESULT: 0x8004000C (OLE_E_PROMPTSAVECANCELLED))
I've got this in VS 10 with CUDA 4.2
Configuration - win7 x64 + GTX 560 + GeForce 210

Speaking for the date of this answer, I've tried hard to make CUDA 4.x with Nsight Visual Studio. But the problem was persistent and reinstalling things didn't help me. After a huge disappointment of this failure, I decide to give CUDA 5 a try.
It installs from a single installer; includes SDK,Toolkit, examples,Nsight Visual Studio, GPU driver and works like a charm. But it only contains 5.0 runtime for development.
NOTE: running Windows 8

Actually, I just encountered the same problem with CUDA 4.2 and Visual Studio 2010. It's solved though after I switch to CUDA 5.0.

Related

Cuda debugging using Single GPU with visual studio

I am working on Windows 7, Visual studio 2010.
Can we debug cuda code using single GPU which also providing display to the monitor in the same PC?
What tools are available ? NSIGHT seems to be working with two GPUs.
Windows 7 support has been dropped in newer versions of Nsight, (see here) basically anything that was released in 2020 or newer. So you're stuck with older versions. Older versions will also have a support chart like the one I previously linked which explains the supported debug scenarios. Generally speaking, single GPU debug as you describe should be possible with a "newer" GPU like Kepler or newer.
The last Nsight version that supported Win 7 is 2019.4 and the associated documentation indicates support for single GPU debugging.
Note that in the 2019.x timeframe, the Nsight tools had both a "legacy" and "next gen" debugger, and the one you should use will depend on which GPU you are using (and possibly driver model WDDM/TCC), see here.
Also note that the last CUDA toolkit that had official support for VS 2010 was in the CUDA 9.x generation.

Compile OpenCV 3.4 and Cuda 9.2 with MS VS15 2017

I need to do fast image processing so I decide to go for OpenCV with CUDA support. Now I'm trying to build OpenCV as dll to use it in my project, but I am not even able to generate the VS project since CMake keeps giving me this error:
CMakeError. I am on Windows 10, CMake 3.11 with VS 15 2017 x64 generator, OpenCV 3.4 (the last release).
I have installed CUDA 9.2, 9.1 and 8.0 and set CUDA_HOME environment variable as the CUDA toolkit directory. Nothing seems to work.
Then I try to set the CUDA_SDK_ROOT_DIR through the CMake GUI, but the CUDA toolkit directory seems to be not the right one and I'm not able to find the CUDA sample directory anywhere.
I have googled a lot, but I found nothing that had been able to help me. Did someone face this very same issue? How can I solve it?
PS: I have successfully created the dll with TBB and IPP (without CUDA) and it is still not fast enough, so I really need to use Cuda.
I have solved using Cuda 9.1 and VS 15.45. To install CUDA in a correct way you need to use custom installation and delete the VS integration, since it seems to have some problems. Once installation is complete, CMake should detect it.
This is a guide that could help.

Install issue pyCuda on Python 3.4, windows 10, Visual Studio 17, CUda 8.061

So simply running the installers for Visual Studio, CUDA and doing a cheeky pip install pycuda led to an epic fail - hence this post. Has anyone used this combination recently - most posts appear to be about Visual Studio 12 and CUDA 7.5 . Any hint on known compatibility issues or instructions to have this installed would be most helpful.
As pointed out below - this apparently wont work.
Also - I realized I have an AMD radeon - so opencl is the only real option - Will update if this installs smoothly.

Windows Phone 7 emulator doesnt work properly and just flickers

Windows Phone 7 emulator doesn't work properly on my laptop.
It just flickers instead of starting my app. Clicking on any of the buttons has no effect. (None of the emulators work, tried 256MB, 512MB, and the ones installed by WP 7.8 SDK Update) WP 7.8 SDK Update didn't solve anything.
I'm using a Samsung NP300E5A-S06 notebook, and it has:
Core i5 3210M 2.5Ghz
Intel HD Graphics 4000 + GeForce GT 620M
6GB of RAM
Here is a video of what's happening on my machine.
I heard this can be caused by the Intel HD Graphics 4000. But we can't force WP Emulator to use the GeForce.
How can I make the WP7 emulator work properly?
If you have any idea or a working solution, please help me!
Thanks in advance!
First, download and install the latest GPU drivers for both GPUs. If it will help, you're lucky: I had something very similar on machine (dual GPU Intel + NVidia as well), and was unable to find a fix.
My advice - upgrade to Windows 8, install visual studio 2012, and WP8 SDK. Fortunately, with the recent version of the SDK you can still build for the previous WP 7.1 platform. And even if xde.exe still won't work on your laptop, you can test and debug the application you're building on new HyperV-based WP8 emulators.
sorry, I cant comment.
Did you try repairing the installation?
Also completely removing and then re-installing?
EDIT:
Also you can try running it on a virtual machine on your laptop (Maybe there is some problem in your Windows installation - after all its Windows ;) )
i think i have had series of problems with that emulator months ago, but now, all is just well. i have some questions for you.
1) Which version of Visual Studio are you using. i believe it should be visual studio 2010
2) have you installed visual studio 2010 service pack 1? if no, try to download it and install
3) which version of .net framework are you using? Visual Studio installs .net3.0 automatically but i guess you have to install the service pack 1 too. you can download it or get it from windows update. in the update settings, choose"check for updates but let me choose which to download and install" then check the two or three check boxes below. then click okay and check for updates. you will then install updates for visual studio 2010 and .net framework.
those should help.

Start CUDA Debugging Invocation Issue - Value cannot be null

I guess to start:
Platform - Win7 x64
Framework - CUDA 5.0 RC using VS 2010
Debugger - Nsight VS Edition 2.2
After each debugging session, I am unable to immediately debug again (if desired) as I'm presented with a Visual Studio error pop-up that states "Value Cannot be null. Parameter name: pSrcNativeVariant". If I rebuild, I am able to invoke the debugging session fine.
The rebuild doesn't completely rid me of this problem though. While in the debug session, if I try to open a CUDA Warp Watch window, I'm presented with the same thing. I've never seen this error before and have not had much success at finding a solution. I'm assuming it has something to do with the way I have something configured, as there's nothing indicative of CUDA in the error (and I have not explicitly used pSrcNativeVariant). If anyone could shed some light or point me in the right direction, I'd greatly appreciate it.
p.s. sorry I couldn't attach the image (not enough rep)
Regards
Nsight 2.2 only supports CUDA 4.2 and 4.1. For CUDA 5.0 support, please wait for Nsight 3.0 which will come late October. Thanks
That sounds pretty strange. I would try an uninstall and reinstall. Uninstall all the CUDA stuff then VS. Then reinstall VS and Nsight (in that order). I'd download the version of Nsight that has the CUDA toolkit bundled.

Resources