[Debian-med-packaging] Bug#747421: camitk: please enable parallel building

Emmanuel Promayon Emmanuel.Promayon at imag.fr
Fri May 9 08:06:09 UTC 2014


Dear Aurélien,

thank you very much for your bug report.

I tried to enable the parallel build in a previous version (3.2.1-1, see 
changelog), but it failed to build on some plateforms with small amount 
of RAM.

It generated an "out of memory" error when compiling the medical imaging 
feature of CamiTK, which is mainly based on ITK (Insight ToolKit) 
filters, which themselves are intensively based on C++ templates.
For instance, on my machine, with -j=9, the compilation needs more than 
8Gb of RAM.

Since 3.2.2-1 the parallel build is disabled (see also the debian/rules, 
where I added some comments in the % rule). All plateforms seem to be 
able to end the build without an error now, although I completely agree 
with you: it takes a llllooonnnnggg time.

The only way to fix this would be to enable parallel build only when 
there is enough RAM.

I am quite a novice, so here are my questions:
* Do you know anyway to estimate the amount of memory needed by a 
compilation?
* Do you know if it is possible to check the available memory in d/r and 
add some kind of test to enable or not parallel build depending on the 
answer?

Best regards,
EP


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2947 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20140509/a1d0343d/attachment-0001.bin>


More information about the Debian-med-packaging mailing list