unified-memory-framework icon indicating copy to clipboard operation
unified-memory-framework copied to clipboard

Init TBB symbols lazily but only once

Open vinser52 opened this issue 1 year ago • 0 comments

Description

Today UMF loads TBB library via dlopen every time the scalable pool instance is created. It is done by tbb_pool_initialize function by calling init_tbb_callbacks. We can optimize it by loading TBB library and looking for appropriate TBB symbols only once (at the first access).

API Changes

N/A

Implementation details

A scalable pool instance should not have a copy of TBB symbols, it should be a global structure of tbb symbols that is initialized lazily only once.

vinser52 avatar Aug 27 '24 13:08 vinser52