[Bf-cycles] [Cycles]Compiling cuda binaries fails at run time

Brecht Van Lommel brechtvanlommel at pandora.be
Fri Dec 9 12:38:55 CET 2011

On windows they need to be created at build time, see here for how to do that:


On Fri, Dec 9, 2011 at 12:30 PM, Yansi Yao <yaoyansi2 at yahoo.cn> wrote:
> Hi all,
> I check out cycles branch r4252, and build RelWithDebInfo version. There is
> no *.cubin files generated.
> I read the svn log r41657 and find that cuda binaries will be generated at
> runtime.
> Then I launch blender.exe and set cycles device to "GPU".
> Then,in 3D View window, I set ViewportShading to Rendered, but nothing is
> rendered.
> The blender console window says:
> `C:\Program` is not recognized as an internal or external command, operable
> program or batch file
> I infer that Blender uses some CUDA environment variable which contains a
> whitsapce character.
> Then I set environment variable %CUDA_BIN_PATH% from %CUDA_PATH%\bin to
> "%CUDA_PATH%\bin", and relaunch blender,
> I find that it is "OpenCL GPU" instead "GPU" in Property->Render->Device. It
> means I can't use CUDA anymore. Very strange!
> I load factory settings and delete all *.pyc in BlenderROOT\2.60\*, and
> relaunch blender, it is still "OpenCL GPU".
> I want to use Cycles with CUDA, but where is the "GPU" gone?
> My environment is WIn7-x32, and some environment variables are:
> CUDA_PATH_V3_2=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\
> PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v3.2\bin\;C:\Program
> Fil
> es\NVIDIA Corporation\PhysX\Common;.;C:\Program
> Files\Novint\HDAL_SDK_2.0.0\bin;
> D:\ProgramFiles\Perl\site\bin;D:\ProgramFiles\Perl\bin;D:\Program
> Files\Autodesk
> \Maya2009\bin;c:\ogrecommandlinetools;c:\ImageMagick;C:\Windows\system32;C:\Wind
> ows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\Prog
> ramFiles\TortoiseSVN\bin;D:\ProgramFiles\java\jdk1.6.0_24\bin;D:\ProgramFiles\To
> rtoiseGit\bin;C:\Program Files\MySQL\MySQL Server
> 5.1\bin;D:\ProgramFiles\Subver
> sion\bin;D:\ProgramFiles\CMake\2.8\bin;C:\ProgramData\NVIDIA
> Corporation\NVIDIA
> GPU Computing SDK 3.2\C\common\bin;C:\Program Files\NVIDIA
> Corporation\Cg\bin;D:
> \ProgramFiles\player\QuickTime\QTSystem\;D:\ProgramFiles\Pixar\RenderManProServe
> r-13.5.2\bin;D:\Tools\compiler\tmake-2.12\bin;%QT473MSVC2008%;C:\Program
> Files\C
> Could you tell me how to solve this problem?
> Thank you.
> Regards
> yaoyansi
> _______________________________________________
> Bf-cycles mailing list
> Bf-cycles at blender.org
> http://lists.blender.org/mailman/listinfo/bf-cycles

More information about the Bf-cycles mailing list