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 includingc:\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
Open File with Fopen, Given Absolute Path on Windows
Is Using Unsigned Integer Overflow Good Practice
Auto' as a Template Argument Placeholder for a Function Parameter
Removing '#Include <Algorithm>' Doesn't Break the Code
Constraining the Existing Boost.Spirit Real_Parser (With a Policy)
How to Change Text or Background Color in a Windows Console Application
How to Set Up Unit Testing for Visual Studio C++
Disabling Warnings Generated via _Crt_Secure_No_Deprecate
Best Practices for Recovering from a Segmentation Fault
How Could Comma Separated Initialization Such as in Eigen Be Possibly Implemented in C++
Why Is a Class Allowed to Have a Static Member of Itself, But Not a Non-Static Member
What's the Difference Between Parentheses and Braces in C++ When Constructing Objects
Pass Arrays from C/C++ to Fortran and Return a Calculated Array
In Which Access Control Context Are Concepts Evaluated