Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

What exactly scalable_msize does?

renorm
Beginner
450 Views
Very quick question. Can this fail?
[cpp]ptr = scalable_aligned_malloc(size, alignment);
assert(size==scalable_msize(ptr));[/cpp]
Thanks.
0 Kudos
2 Replies
Alexey-Kukanov
Employee
450 Views
Yes it can.

You can think of scalable_msize as the biggest size for which scalable_realloc returns the same address that it received.
0 Kudos
Ilnar
Beginner
450 Views
[bash]assert(size <= scalable_msize(ptr));[/bash]
0 Kudos
Reply