Cuda Linking Error - Visual Express 2008 - Nvcc Fatal Due to (Null) Configuration File

pycuda; nvcc fatal : Visual Studio configuration file '(null)' could not be found

In stackoverflow post CUDA linking error - Visual Express 2008 - nvcc fatal due to (null) configuration file the answer by Amitabh Mritunjai fixed this error. He explains the steps for Visual C++ Express 2010 while the most of the rest of the post is about 2008.

Error compiling CUDA from Command Prompt

You will need to add the folder containing the "cl.exe" file to your path environment variable. For example:

C:\Program Files\Microsoft Visual Studio 10.0\VC\bin

Edit: Ok, go to My Computer -> Properties -> Advanced System Settings -> Environment Variables. Here look for "PATH" in the list, and add the path above (or whatever is the location of your cl.exe).

How can I configure visual c++ 2008 for 64 bit?

Visual Studio Express 2008 doesn't ship with the x64 compiler, that's reserved for the pro versions.

The command-line version is included in the Windows SDK though, which is available for free. You can find some information about adding the 64bit compiler to Visual Studio Express on the internet, but it's a big hack. Just a quick search on google revealed for example this blog-entry: https://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/

visual c++ 2008 express

No. there is no such command in visual studio. If you want to compile with VC6 you'll need to install VC6.

Also, notice that the version of the compiler cl.exe is usually different from the version of visual studio. For instance the compiler which comes with visual studio 2008 (which is version 9 if visual studio) is:

C:\Program Files\Microsoft Visual Studio 9.0\VC>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86

Compile CUDA without Visual Studio - Cannot find compiler cl.exe in path

Following the previous comments I've installed Studio Express & VS2010.
This did not solve the "cl.exe not in path" problem.

I solved the problem with the error Cannot find compiler cl.exe in path, by including
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64 in PATH,
before installing Windows SDK.

This question also contains valuable information.

For some reason VS2010 & Studio Express failed to set the proper variables in path even after the execution of vsvars32.bat.

Thank you all for your valuable help.



Related Topics



Leave a reply



Submit