[Bf-committers] 8GB of RAM insufficient for bulding Blender
bjustj at ymail.com
bjustj at ymail.com
Fri Feb 28 13:16:19 CET 2020
I just got through an issue compiling blender. It was freezing my machine compiling the cuda kernel code on a 12gb laptop.
I tried running make from the kernel subdirectory and it made it through using 1 thread.
On February 28, 2020 2:16:02 AM MST, Bastien Montagne <montagne29 at wanadoo.fr> wrote:
>There's also another solution, using ninja builder instead of make one
>(ninja should be easy to install from your distro's packages).
>Once installed, you need to generate a CMake build, specifying ninja as
>builder (instead of the default, make option), and enabling
>cmake -G Ninja -D WITH_NINJA_POOL_JOBS=ON path/to/blender/source
>You can then try to build and see if that works. If not, you can try to
>tweak the NINJA_MAX_NUM_PARALLEL_ options (e.g. set _LINK_JOBS and
>_COMPILE_HEAVY_JOBS to 1).
>Those options try to be smart be enabling optimal parallelization for
>regular compile tasks, while enforcing heavy ones (and linking, which
>also eats a lot of RAM) to only run one at a time.
>As a side note, it would indeed be interesting to know which module
>actually fails to build with 8GB.
>On 28/02/2020 09:58, Brecht Van Lommel wrote:
>> There's a few possible solutions:
>> * Enable WITH_CYCLES_NATIVE_ONLY and disable
>> * If it's running out of memory building a particular module, you can
>> disable that module in CMake (e.g. WITH_MOD_FLUID, ...). It would be
>> interesting to know which one.
>> * As a last resort, you can build with fewer threads.
>> On Fri, Feb 28, 2020 at 9:48 AM Deep
>Majumder<deep.majumder2019 at gmail.com>
>>> Hello everyone,
>>> I am trying to build Blender (from its source on Git) so as to apply
>>> Google Suumer of Code 2020. However, when the build process (make)
>>> to 57%, the whole of my 8 GB RAM is consumed and my system starts
>>> (eventually the build process gets killed). I am using Pop OS 19.10
>>> (which is based on Ubuntu 19.10 Eoan Ermine 64-bit), on an Intel
>>> 8th Gen processor, 8gb of RAM, and 4 GB of swap space on a 7200 rpm
>>> Is there a workaround this or do I need to buy more RAM?
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>> Bf-committers mailing list
>> Bf-committers at blender.org
>Bf-committers mailing list
>Bf-committers at blender.org
More information about the Bf-committers