"clean" error with CUDA 5.5 in Visual Studio 2010 Express - visual-studio-2010

I have been using Visual Studio 2010 Express for my CUDA-related development. Recently, I upgraded from CUDA 5.0 to 5.5. When I did so, I discovered what is seemingly an odd bug: whenever I go to clean (or to rebuild) my VS project, I get an error related to nvcc:
nvcc : fatal error : nvcc cannot find a supported version of Microsoft Visual Studio. Only the versions 2008, 2010, and 2012 are supported
I get this same error on multiple independent projects whenever I try to clean them. The error goes away if I use Visual Studio 2010 Professional.
I was wondering if anyone else has come across this error, and, if so, are there any workarounds (other than switching to VS 2010 Professional)?
Thank you,
Aaron

According to the release notes for CUDA 5.5, Visual Studio 2010 Express is not supported. The supported versions of Visual Studio are:
Compiler IDE
Visual C++ 11.0 Visual Studio 2012
Visual C++ 11.0 Visual Studio 2012 Express (32-bit)
Visual C++ 10.0 Visual Studio 2010
Visual C++ 9.0 Visual Studio 2008

Related

Can Visual Studio 2008 Projects be converted to a newer Visual studio versions?

I'm trying to convert my visual studio 2008 projects to VS2019 but getting incompatible errors. I also tried earlier versions like 2012, 2015 and got the same thing. Is this even possible?

CUDA 7.0 installation not detecting Visual Studio 2013 Express

I am trying to install CUDA 7.0 on my laptop. It's Windows 7 64-bit with Visual Studio for Desktop 2013 Express. I get the error message "No supported version of Visual Studio was found." In the CUDA documentation it specifies that VS 2013 is supported (however it doesn't mention the Express version). Any advice please?
Visual Studio 2013 Express is not a supported version for CUDA 7.0.
The supported versions are listed in the windows getting started guide.
Switch to a supported version.
If you are looking for a "free" Visual Studio version, use Visual Studio 2013 Community Edition. This has some advantages anyway, over the express versions:
64-bit compiler support
VS Plugin support (so you can use nsight VSE, although the warning message you received is not unique to nsight VSE. The CUDA 7 installer will report that.)

Visual Studio 2013 and Cmake?

I have been using 2010 on a project. The project was built using cmake, when cmake chose to use the compiler Visual Studio 2010. Now I intend to move the whole set up of the project to Visual Studio 2013.
So, today I installed Visual Studio 2013. But when I try to use cmake to build the project for visual studio 2013, in the compiler list of cmake I cannot see any compiler of Visual studio 2013, the latest are Visual Studio 2012, Visual Studio 2012 win64, Visual Studio 2012 ARM.
Is there no exclusive compiler for Visual Studio 2013? Does the same compiler work for both VS2012 and VS2013? If Visual Studio 2013 indeed has an exclusive compiler, why can't cmake find the that compiler?
Thanks.
Try updating your CMake version.
The Configue dialog in cmake-gui for CMake 3.1 lists the respective entries as Visual Studio 12 2013:
In older CMake versions (older than 3.0) the entries omitted the year and showed only the version number, so the entry just reads Visual Studio 12.
If your CMake version is even older, there might not be support for Visual Studio 2013 at all. However, you should still be able to open project files generated for an older Visual Studio version. This might require an additional conversion step by Visual Studio, which might mess things up.
Upgrading CMake is definitely the preferred solution.

Why the massive overhead in a visual studio install

I install visual studio 2013 ultimate on a x64, and i get with is components from 2005 and a whole bunch for x86 ?!
Microsoft Visual C++ 2005 redistributable x86
It also , if i am not mistaken, gives me a version of visual studio 2010 as well as tooling and files only associated for those versions. There was no option to negate this. Do i really need all of this?

Supported Windows compilers in CUDA

I am a complete novice CUDA programmer trying to get started, and I am encountering the issue mentioned here with version 5.5
"clean" error with CUDA 5.5 in Visual Studio 2010 Express
Can anyone confirm that this is an issue with version 5.5 only? Is there an earlier version that I can install e.g. 5.0, that will allow nvcc to work with the Visual Studio 10.0 Express version compiler under 64-bit Windows 7?
This is a late answer provided here to remove this question from the unanswered list.
From the NVIDIA CUDA TOOLKIT V5.0 Release Notes, Section 5.1, Table 1
Supported Windows Compilers (32-bit and 64-bit)
Compiler IDE
Visual C++ 10.0 Visual Studio 2010
Visual C++ 9.0 Visual Studio 2008
From the NVIDIA CUDA TOOLKIT V5.5 Release Notes, Table 2
Windows Compilers Supported in CUDA 5.5
Compiler IDE
Visual C++ 11.0 Visual Studio 2012
Visual C++ 11.0 Visual Studio 2012 Express (32-bit)
Visual C++ 10.0 Visual Studio 2010
Visual C++ 9.0 Visual Studio 2008
From the NVIDIA CUDA GETTING STARTED GUIDE FOR MICROSOFT WINDOWS for CUDA 6.0
Windows Compiler Support in CUDA 6.0
Compiler IDE
Visual C++ 11.0 Visual Studio 2012 Express
Visual C++ 10.0 Visual Studio 2010
Visual C++ 9.0 Visual Studio 2008
In all the above releases, there is no support for Visual Studio 2010 Express.

Resources