[llvm-dev] Recommended computer resources to build llvm

Justin Bogner via llvm-dev
Tue, 06 Sep 2016 22:23:15 -0000

You can use the ninja pool stuff with -DLLVM_PARALLEL_LINK_JOBS=4 (or 2,
or whatever) on the cmake invocation.

Bruce Hoult via llvm-dev <llvm-dev at lists.llvm.org>
writes:
> That's a reasonably well resourced machine, though the last couple of
years
> I've been spec'ing quad core (plus HT) machines with 32 GB rather
than 16
> GB, and you've got 50% more cores.
>
> Still that should be plenty for 12 compiler instances. I suspect the
> problem is something else, such as link steps.
>
> I haven't looked at the actual ninja rules, but you can specify a
smaller
> "-j" setting for particular kinds of build steps. See:
>
> https://ninja-build.org/manual.html#ref_pool
>
> I have no idea whether the llvm ninja rules currently include something
> like that.
>
>
> On Wed, Sep 7, 2016 at 9:54 AM, Wink Saville via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> I've got a i7 with 12 logical cores and 16GB of RAM I successfully
>> built RELEASE_390/final but for the last 100 or so files I'd to use
>> "ninja -j2" so as not to keep from swapping in the best case
and and
>> in the worst case the build kills itself without completing because
>> apparently its run out of memory.
>>
>> For the first 3200 files or so it was doing just fine with
"ninja"
>> which is probably "ninja -j12" but as I said for the last 100
or so
>> files I had to use "ninja -j2" to get it to complete.
>>
>> So what is the recommended computer resources, and I guess RAM size in
>> particular, for building llvm "quickly"?
>>
>> -- wink
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev