metall icon indicating copy to clipboard operation
metall copied to clipboard

Assertion triggered on small allocations with custom chunk size

Open liss-h opened this issue 6 months ago • 4 comments

Hi, we've ran into a problem an wanted some guidance. So, the metall manager has this k_chunk_size template parameter which is set to 1 << 21 by default.

If we set it to e.g. 1 << 28 metall fails to allocate small objects (as far as I can tell everything below 2*sizeof(void *)). The following assertion is triggered inside metall:

multilayer_bitset.hpp:481: std::size_t metall::kernel::multilayer_bitset::num_all_blocks(std::size_t) const: Assertion `idx < mlbs::k_num_layers_table.size()' failed.

So I'm basically just here to ask if this is expected behaviour or if this is a bug (an explaination of what the parameter does exactly would also be appreciated) 😅

liss-h avatar Aug 07 '24 08:08 liss-h