Nvcc Error Code 2
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, https://devtalk.nvidia.com/default/topic/493712/cuda-4-0-vs-2010-error-msb3721-exited-with-code-2-/ helping each other. Join them; it only takes a minute: Sign up cuda error MSB3721 exited with code 2 up vote 1 down vote favorite I am trying to compile my first CUDA 5.0 project I took the template sample. I have not gotten it to compile it yet and as it shows two errors, I have http://stackoverflow.com/questions/12888247/cuda-error-msb3721-exited-with-code-2 compared the project settings with those of the template project and they appear to be consistent so I'm stumped. Here are my two errors. The first occurs when I try to call my kernwl it marks the '<<<' Error 32 error : expected an expression D:\Virtualbox Data\Assembla\gul\antares software\AntaresVisualizerCuda\AntaresVisualizerCuda\kernel.cu 584 Its possible that thar would be fixed by solving the next error: Error 33 error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" --use-local-env --cl-version 2010 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -I"./" -I"C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\C\common\inc" -I"C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\shared\inc" -I"C:\fltk-1.3.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include" -G --keep-dir "Debug" -maxrregcount=0 --machine 32 --compile -g -DWIN32 -DWIN32 -DWIN32 -D_DEBUG -D_WINDOWS -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MTd " -o "Win32/Debug/kernel.cu.obj" "D:\Virtualbox Data\Assembla\gul\antares software\AntaresVisualizerCuda\AntaresVisualizerCuda\kernel.cu"" exited with code 2. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.0.targets 498 Any ideas on this one? visual-studio-2010 cuda compiler-errors share|improve this question edited Dec 20 '12 at 12:39 talonmies 51.4k1496147 asked Oct 15 '12 at 1:37
Be Our Fan Monday, February 24, 2014 CUDA Compiler Error in Visual Studio 2012 Error MSB3721: The command "C:\Program Files\NVIDIA GPU Computing http://portal.sivarajan.com/2014/02/cuda-compiler-error-in-visual-studio.html Toolkit\CUDA\v5.5\bin\nvcc.exe" Monday, February 24, 2014 3:53 AM Santhosh Sivarajan No https://social.msdn.microsoft.com/Forums/vstudio/en-US/baa6408e-f2ac-4961-8c08-dd413cef95ef/issues-with-compiling-cudafiles-in-vs-2010-professional-error-msb3721?forum=msbuild comments I am very new to CUDA and parallel programming. I was getting all kinds of errors in the beginning due wrong DLL, LIB folder, Working directory etc. However, the following error message was little confusing and misleading: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations\CUDA 5.5.targets(592,9): error code 2 MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" --use-local-env --cl-version 2012 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin" -IC:\OpenCV -IC:\OpenCV\build -IC:\OpenCV\build\include -IC:\OpenCV\build\include\opencv -IC:\OpenCV\build\x86 -IC:\OpenCV\build\x86\vc10 -IC:\OpenCV\build\x86\vc10\bin -IC:\OpenCV\build\x86\vc10\lib -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -cudart static -g -DWIN32 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc error msb3721 exited /W3 /nologo /Od /Zi /RTC1 /MDd " -o Debug\kernel.cu.obj "D:\Santhosh\Project\Cuda1-OLD\Cuda1\kernel.cu"" exited with code 2. I found a lot of recommendation on the net about changing the compute type, hardware configuration etc for resolving this issue. In my case, I was missing the correct folder name in the Include Directories under VC++ Directories node. Everything started working after I added the correct include directories.
Posted in: Newer Post Older Post Home 0 comments: Post a Comment Popular Posts AD Group Report - List Group Members in Active Directory-PowerShell Script Updated Script - http://portal.sivarajan.com/2011/10/search-ad-collect-local-admin-group.html Script #1 This script... ADMT Service Account - Permission and Configuration The ADMT service account needs to have proper permission in source and target domains. You don't need to use 2 separate accounts. You can ... Workstation Trust Relationship Issue Issue: You receive the following error message, when you try to login to the domain. The security database on the server does not hMSB3721 Visual Studio Development > MSBuild Question 0 Sign in to vote Hi, I just tried to compile a .cu file with Microsoft Visual Studio 2010 Professional. With .cpp files everything works fine, but when i enable the CUDA-compiler for a .cu file, VS 2010 gives me the following error: Error2error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" --use-local-env --cl-version 2010 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -cudart static -g -DWIN32 -D_DEBUG -D_CONSOLE -D_UNICODE -DUNICODE -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd " -o Debug\kernels.cu.obj "\S:\s18004\documents\visual studio 2010\Projects\cudaprojekt12\cudaprojekt12\kernels.cu"" exited with code 2.C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.targets59210cudaprojekt12 Does someone know how to fix or workaround that? Thank you in advance, Liona Monday, August 26, 2013 12:06 PM Reply | Quote Answers 1 Sign in to vote Hi Liona, Please check propertiess of the .cu file after building the project becausethe settingsof .cu file and .cpp file are different. For example,make sure that you have chosen the right version of Cuda compiler and set the propertiesto Compile with CUDA C/C++. For more details,please refer to the following links: How to Compile CUDA App is Visual Studio 2010? Error MSB3721 with Cuda 5.5 and VS 2010 Professional How to build CUDA 4.0 samples with Visual Studio? If the problems remain unresolved,please provide the sample code and detailed error message for further analysis. Best Regards. Jane.