Nvcc Fatal Error Visual Studio Configuration File
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings nvcc error : 'cl.exe' died with status 0xc0000135 and policies of this site About Us Learn more about Stack Overflow
Vcvars64.bat Missing
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Vcvarsall Missing Visual Studio 2015
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only
Fatal Error C1083: Cannot Open Include File: 'crtdefs.h': No Such File Or Directory
takes a minute: Sign up What is the “Visual Studio configuration file”, why is nvcc looking for it, why can't it find it, how to fix? up vote 1 down vote favorite I am trying to compile CUDA code from the command line using CUDA toolkit version 5.0 and the Visual Studio 2010 Professional compiler. In response to the following, could not setup the environment for microsoft visual studio using nvcc -c AddVectors.cu -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" I get the following error message nvcc : fatal error : Visual Studio configuration file '(null)' could not be found for installation at 'C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/../..' I also get this error message when Rebuilding within the VS 2010 IDE, but not when I just plain Build. I am by no means a Visual Studio expert, but what is curious about the error message for me is that nvcc seems to exit the compiler directory I have specified and search upward from there VC/bin/../.. Why is it doing this? Why does it need anything other than the compiler executable in VC/bin/ and what is the role of the "Visual Studio configuration file" in all of this? And, last but not least, how do I resolve this? EDIT: My environment and search path are ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\mjacobson\AppData\Roaming CommonProgramFiles=C:\Program Files\Common Files CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files CommonProgramW6432=C:\Program Files\Common Files COMPUTERNAME=WAA04087-RD ComSpec=C:\Windows\system32\cmd.exe CUDA_BIN_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin CUDA_INC_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include CUDA_LIB_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\lib\x64 CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\ CUDA_PATH_V4_2=C:\Program
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies nvcc cannot find a supported version of microsoft visual studio of this site About Us Learn more about Stack Overflow the company cuda download Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users windows sdk Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a http://stackoverflow.com/questions/21292190/what-is-the-visual-studio-configuration-file-why-is-nvcc-looking-for-it-why minute: Sign up CUDA linking error - Visual Express 2008 - nvcc fatal due to (null) configuration file up vote 12 down vote favorite 5 I've been searching extensively for a possible solution to my error for the past 2 weeks. I have successfully installed the Cuda 64-bit compiler (tools) and SDK as well as the 64-bit version of Visual Studio Express http://stackoverflow.com/questions/2970493/cuda-linking-error-visual-express-2008-nvcc-fatal-due-to-null-configuratio 2008 and Windows 7 SDK with Framework 3.5. I'm using windows XP 64-bit. I have confirmed that VSE is able to compile in 64-bit as I have all of the 64-bit options available to me using the steps on the following website: (since Visual Express does not inherently include the 64-bit packages) http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/ The registry updates for 64-bit installation are found in a user comment on the same page as the above link. I have confirmed the 64-bit compile ability since the "x64" is available from the pull-down menu under "Tools->Options->VC++ Directories" and compiling in 64-bit does not result in the entire project being "skipped". I have included all the needed directories for 64-bit cuda tools, 64 SDK and Visual Express (\VC\bin\amd64). Here's the error message I receive when trying to compile in 64-bit: 1>------ Build started: Project: New, Configuration: Release x64 ------ 1>Compiling with CUDA Build Rule... 1>"C:\CUDA\bin64\nvcc.exe" -arch sm_10 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin" -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MT " -maxrregcount=32 --compile -o "x64\Release\template.cu.obj" "c:\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\src\CUDA_Walkthrough_DeviceKernels\template.cu" 1>nvcc fatal : V
Esperanto Spanish Estonian Farsi Finnish French Indonesian Italian Japanese Korean Lithuanian Macedonian Mongolian Dutch Polish Portuguese Romanian Russian Serbian Swedish Thai Turkish Ukrainian Chinese Developer page Discussion View source History Page What links here Related changes Permanent link From BlenderWiki Jump to: navigation, search xxx Cycles And CUDA Binaries Currently CUDA GPU Toolkit 6.0 is supported: https://developer.nvidia.com/cuda-downloads Building with VS-2013 You can not build the CUDA libraries directly with the vs-2013 compiler. If you want to get vs-2013 to work then you have to prepare the environment as follows: Download and install the CUDA Toolkit 6.0 (5.0 or 5.5 might also work, but are no longer officially supported by Blender) Install the VS-2008 Pro or Express in parallel to VS-2013 (Actually you also can install VS-2010 if you prefer) Locate the bin folder of the installed CUDA kit. That is something like c:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin Edit the file nvcc.profile and add the location of your compiler binaries at the end of the file. For VS-2008 this is typically:compiler-bindir = C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin Building with vs-2008 (pro) Download and install the CUDA Toolkit 6.0 (5.0 or 5.5 might also work, but are no longer officially supported by Blender) Building with other Compilers If you want to build with cycles and CUDA binaries you also need to install Microsoft Visual Studio (MSVC) 2008 as well and run the build process from a MSVC terminal. This is needed because the CUDA compiler needs to use the MSVC compiler. For 64-bit builds(such as MinGW-w64) the CUDA compiler will need the 64bit toolset. It is possible to get this without MSVC professional by downloading the Windows SDK (version 7.1 has a very buggy installation but 7.0 iso should work) Additionally, there's one other thing to change for a 64-bit system. Apparently the cuda compiler has a "hard-coded" directory for 64-bit compilers. To make the fix, copy the needed file "vcvars64.bat" and rename it to "vcvarsamd64.bat" as follows: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat Similarly, for MinGW32, a copy is required from C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars32.ba