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

Deprecated features in OneAPI TBB: runtime_loader, task_scheduler_init, atomic

Przemysław_O_
Beginner
1,799 Views

Hello,

I have tried to test some code, which we build with Intel C++ Professional 2020, with OneAPI.

TBB reports errors, some headers does not exists anymore:

#include "tbb\atomic.h"

#include "tbb/runtime_loader.h"
#include "tbb/task_scheduler_init.h"

I suppose, that we can simply replace tbb::atomic with std::atomic.

What about runtime_loader and task_scheduler_init?

Is there any replacement/workaround for those features?

0 Kudos
5 Replies
GouthamK_Intel
Moderator
1,765 Views

Hi,

Thanks for reaching out to us!

We are transitioning to oneTBB: https://software.intel.com/en-us/oneapi/onetbb with what we call revamped TBB API. Please see the document that you can access from the link mentioned here:

https://software.intel.com/content/www/us/en/develop/articles/tbb-revamp.html

 or directly https://software.intel.com/content/dam/develop/external/us/en/documents/tbbrevamp.pdf

Also, for more information about deprecated features please refer to the below link:

https://software.intel.com/content/www/us/en/develop/documentation/tbb-documentation/top/intel-threading-building-blocks-developer-reference/appendices/deprecated-features.html

Please let us know if this helps,

Have a Good day!


Thanks & Regards

Goutham


0 Kudos
Przemysław_O_
Beginner
1,746 Views

Hi Goutham,

thank you for your answer. Those informations were helpful.

Unfortunately, one of the features we use (runtime_loader) is labeled as "No replacement is planned" and we have to find some workaround.

Best regards

Przemek

 

0 Kudos
GouthamK_Intel
Moderator
1,694 Views

Hi Przemek,

We have informed the concerned team regarding your concern and they are working on it.

As you have already raised a GitHub issue, could you please let us know whether we can close this thread here?


Regards

Goutham


0 Kudos
Przemysław_O_
Beginner
1,694 Views

Hi Goutham,

I put some informations together, so you can close this thread.

Thanks for all help.

Regards

Przemek

 

0 Kudos
GouthamK_Intel
Moderator
1,689 Views

Hi Przemek,

Thanks for the confirmation!

We will no longer respond to this thread. If you require any additional assistance from Intel, please start a new thread. 

Any further interaction in this thread will be considered community only. 

Have a Good day.


Thanks & Regards

Goutham


0 Kudos
Reply