You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added these in my CMakeList.txt:
find_package(TBB REQUIRED)
list(APPEND MNN_DEPENDS TBB::tbb)
and i write these in my code: auto range_ = oneapi::tbb::blocked_range<std::size_t>(0, mTotalSize, 100); oneapi::tbb::parallel_for(range_, [&](const tbb::blocked_range<std::size_t>& range) { for (auto it = range.begin(); it != range.end(); ++it) { int j = 9; } });
then compile error like:
Undefined symbol: tbb::detail::r1::deallocate(tbb::detail::d1::small_object_pool&, void*, unsigned long, tbb::detail::d1::execution_data const&)
But if i just write : auto range_ = oneapi::tbb::blocked_range<std::size_t>(0, mTotalSize, 100);
Then compilation succeed.
Like that error occured when i write "parallel_for"
The text was updated successfully, but these errors were encountered:
@v0jiuqi what does list(APPEND MNN_DEPENDS TBB::tbb) do exactly? It seems like you do not link your application against oneTBB using target_link_libraries(<your_target> ... TBB::tbb)
I have added these in my CMakeList.txt:
find_package(TBB REQUIRED)
list(APPEND MNN_DEPENDS TBB::tbb)
and i write these in my code:
auto range_ = oneapi::tbb::blocked_range<std::size_t>(0, mTotalSize, 100); oneapi::tbb::parallel_for(range_, [&](const tbb::blocked_range<std::size_t>& range) { for (auto it = range.begin(); it != range.end(); ++it) { int j = 9; } });
then compile error like:
Undefined symbol: tbb::detail::r1::deallocate(tbb::detail::d1::small_object_pool&, void*, unsigned long, tbb::detail::d1::execution_data const&)
But if i just write :
auto range_ = oneapi::tbb::blocked_range<std::size_t>(0, mTotalSize, 100);
Then compilation succeed.
Like that error occured when i write "parallel_for"
The text was updated successfully, but these errors were encountered: