16G memory allocation limit

Hello everyone,

Is there a way to up the 16G maximum allowed buffer size? I have tons of memory to process really large 3D images but this limitation is preventing the processing, as per message below

[gmic]./ *** Error *** Command 'append': Specified size (2438,869,15149,1) exceeds maximum allowed buffer size of 17179869184

Thanks for any and all suggestions.

Yes, actually this limit is set in file CImg.h, at l. 275:

#define cimg_max_buf_size ((cimg_ulong)16*1024*1024*1024)

You’ll have to replace the 16 by the value you want (e.g. 64), then you’ll have to recompile gmic on your machine, using the instructions explained at G'MIC - GREYC's Magic for Image Computing: A Full-Featured Open-Source Framework for Image Processing - Download
If you need help in compiling gmic for your specific distro, please let me know!

Many thanks for the prompt response and availability to help! And for the download link. I just finished compiling cli (for a power8 machine) after upping max buf size to 64G, it seems all went well.

:green_heart: GMIC :yellow_heart:

1 Like

It seems someone was shopping memory :wink:

I did shop long time ago just can’t carry those sticks with me in trips :grinning:

next time you can bring one of those 128GB framework desktops

Those 128G sticks are waiting for a new mini ITX motherboard, super helpful to pack and go!

well the framework desktop has soldered on memory. ( minor downside ) but on the other side it gives you almost 200GB/s memory speed ( which is what you get from a threadripper CPU with all memory channels filled )

and all that in a 4.5l computer case.

Wow! All in 4.5l and at US$1K is impressive. I just checked frame.work. Thanks for the tip. I already have acquired all parts for the mini ITX but maybe next time.