December 25, 2015

IncrediBuild - VS 2013 & CUDA

IncrediBuild offers distributed build of Visual C++ solutions.

https://www.incredibuild.com/accelerate-visual-studio-cc-builds.html

Install IncrediBuild-coordinator to your machine, which deploys as add-on in Visual Studio. Then install several IncrediBuild-agents (including your machine) connected to coordinator.
After registering and installing, you should get license file which must be deployed: http://www.incredibuild.com/webhelp/registering1.html

As usual, there are several problems.
  • Unexpected PDB error; RPC (23) '(0x000006BA)'

if your project contains .cpp file without definitions (i.e. only headers with declarations, empty namespace, comments,...)

https://software.intel.com/en-us/articles/unexpected-pdb-error-rpc-23-0x000006ba/

  • fatal error C1041: cannot open program database '...'; if multiple CL.EXE write to the same .PDB file, please use /FS


Project -> Properties -> CUDA C/C++ -> Host -> Additional Compiler Options -> /FS

https://devtalk.nvidia.com/default/topic/856809/building-cuda-kernels-in-parallel-in-vs2013-/


  • Problems can arise also if Enable Function-Level Linking is disabled. 


Advantages of IncrediBuild:


  • Although distributed build, all .obj files are local in your machine, so you can debug as usual.
  • partial build time visualization to easily reveal bottleneck.
  • one click to get into errors and warnings belonging to .cpp file
  • only way how to build CUDA in parallel

No comments:

Post a Comment