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

Cannot find composite_node with clang

Florian_J_
Beginner
535 Views

I experiment with the TBB composite node and the TBB CMake scripts.

My test repository https://github.com/thedarksideofthemoon/tbb-test works fine when I compile it using GCC 5.4 at Ubuntu 16.04. However, I cannot get my test program to compile with Clang 6.0. Instead, I get the compiler error error: unknown template name 'composite_node'.

Do I need any additional flags to find the composite_node?

0 Kudos
5 Replies
Nikita_P_Intel
Employee
535 Views

Hi Florian,

We do not support pre-release compiler versions. Your test compiles well on Clang 4.0. Why do you need exactly Clang 6.0?

Nikita

0 Kudos
Vladimir_P_1234567890
535 Views

Hello, 

you can define __TBB_FLOW_GRAPH_CPP11_FEATURES macro to 1 to overcome this particular problem with this prereleased compiler.

--Vladimir

0 Kudos
Florian_J_
Beginner
535 Views
I get the same error message on my Mac using stable Apple Clang 8.1.0. (XCode 8.3.3).
 
 The  __TBB_FLOW_GRAPH_CPP11_FEATURES definition did the trick, though. Thank you very much!
0 Kudos
Nikita_P_Intel
Employee
535 Views

Hi Florian!

I have checked your tbb-test example on Ubuntu 16.04 with clang 6.0 and everything is ok. Could you please compile test_composite_node with stdver=c++11 enabled?

Nikita

 

0 Kudos
Florian_J_
Beginner
535 Views

I updated the repository with stdver=c++11 – with no effect. 

error: no type named 'composite_node' in namespace 'tbb::flow'

 

 

0 Kudos
Reply