[Closed] Limit/set the number of parallel jobs when compiling?
Both when building a project and building the UE4Editor I cannot find a way to limit the number of parallel jobs that clang uses. So I get:
I tried compiling the editor with make -j2 UE4Editor but the build tools completely ignore that. My problem is that my cpu shows 4 available cpus (2 + 2 hyperthreading) but that gets me out of memory, too many processes, more than my 8GB occupied, system crash (happend two times). I had to disable hyperthreading on the BIOS so that the build tools sees only 2 cpus and uses half the memory. But of course this is stupid, because I could for example compile with 3 jobs and it would be fine. After disabling hyperthreading I get:
So, my question is: is there any way to limit/set the number of parallel jobs when compiling? if not, what is the reason for that? I tried googling a bit and looking for the build tools compile options but couldn't find the answer
(comments are locked)
|
The question has been closed Feb 05 '15 at 01:44 PM by amigo for the following reason:
The question is answered, right answer was accepted
Hi fales, Please edit Engine/Saved/UnrealBuildTool/BuildConfiguration.xml and add 2< /MaxProcessorCount >in-between and < /BuildConfiguration >which will limit your processor count to 2 (or whichever other number you set there). There are no spaces after the greater and smaller than signs, I just had to add them to actually display the tags in the post. Not worked for me, with 4.16 and clang 4.0 Worked for me. with 4.18 and clang 3.8. But I needed to add the BuildConfiguration-Element as well. Full XML-file is (remove spaces after <): < ?xml version="1.0" encoding="utf-8" ?> < Configuration xmlns="https://www.unrealengine.com/BuildConfiguration"> < BuildConfiguration> < MaxProcessorCount>4 < /BuildConfiguration> < /Configuration> As of 4.21 (and perhaps earlier, but I haven't checked), MaxProcessCount belongs under one of the executor elements (e.g., ParallelExecutor). I'm using the following BuildConfiguration.xml:
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here