[Bf-committers] 8GB of RAM insufficient for bulding Blender

Lukas Stockner lukas.stockner at freenet.de
Fri Feb 28 14:00:31 CET 2020


Note that if you're running out of memory due to parallel CUDA builds 
(which can VERY easily happen), you can enable 
WITH_CYCLES_CUDA_BUILD_SERIAL to force the kernels to be built one at a 
time.

On 2/28/20 1:16 PM, bjustj at ymail.com wrote:
> Cuda Issue?
>
> 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.
>
> JJ
>
>
>
> 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
>> WITH_NINJA_POOL_JOBS:
>>
>> cd my/new/builddir
>> 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.
>>
>> Cheers,
>> Bastien
>>
>> On 28/02/2020 09:58, Brecht Van Lommel wrote:
>>> There's a few possible solutions:
>>>
>>> * Enable WITH_CYCLES_NATIVE_ONLY and disable
>>> WITH_LIBMV_SCHUR_SPECIALIZATIONS
>>> * 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>
>>> wrote:
>>>
>>>> Hello everyone,
>>>>
>>>> I am trying to build Blender (from its source on Git) so as to apply
>> for
>>>> Google Suumer of Code 2020. However, when the build process (make)
>> reaches
>>>> to 57%, the whole of my 8 GB RAM is consumed and my system starts
>> thrashing
>>>> (eventually the build process gets killed). I am using Pop OS 19.10
>> 64-bit
>>>> (which is based on Ubuntu 19.10 Eoan Ermine 64-bit), on an Intel
>> Core i5
>>>> 8th Gen processor, 8gb of RAM, and 4 GB of swap space on a 7200 rpm
>> HDD.
>>>> Is there a workaround this or do I need to buy more RAM?
>>>>
>>>> Regards,
>>>> Deep
>>>> _______________________________________________
>>>> Bf-committers mailing list
>>>> Bf-committers at blender.org
>>>> https://lists.blender.org/mailman/listinfo/bf-committers
>>>>
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> https://lists.blender.org/mailman/listinfo/bf-committers
>>>
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> https://lists.blender.org/mailman/listinfo/bf-committers
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> https://lists.blender.org/mailman/listinfo/bf-committers


More information about the Bf-committers mailing list