C++ How to limit visual studios multi-processor compilation

后端 未结 7 577
不思量自难忘°
不思量自难忘° 2021-02-02 10:24

Every time I compile using visual studio the rest of my computer crawls because visual studio is hogging all the processors. Is there a way to limit the number of processors tha

7条回答
  •  难免孤独
    2021-02-02 11:14

    For C++ Use

    *msbuild /p:CL_MPCount=X 
    

    Where X is the number of compiler driver. I use this to limit the CPU utilization when compiling the Tensorflow source code.

    Read this for more details: ms's blog on vs2010 c++ parallel building

提交回复
热议问题