Software Archive
Read-only legacy content
17061 Discussions

Offload compilation using -tbb fails with "ld: cannot find -ltbb"

jiri
New Contributor I
2,846 Views

We have just upgraded to Composer XE 2013 SP1 and I can no longer do offload compilation of even a simple program.

I have included the variables script (compilevars.sh intel64) and the values of those variables look OK. However, if I take the following file:

[cpp]

#include <iostream>


int main()
{
        int i;
        #pragma offload target(mic:0)
        {
                i=1;
        }
        std::cout<<i<<std::endl;
}
[/cpp]

and try to compile it using "icc -tbb empty.cpp" then I get "ld: cannot find -ltbb". If I remove the pragma offload and run the same command, it is OK. Without the pragma, even "icc -mmic -tbb -lpthread empty.cpp" works just fine. Everything works when I go back to the previous version of the compiler.

What am I doing wrong? Has anyone seen the same issue?

0 Kudos
21 Replies
Kevin_D_Intel
Employee
290 Views

The MKL/TBB run-time issue (DPD200383051) noted in reply #9 is fixed in the Composer XE 2013 SP1 Update 2 (Version 14.0.2.144) release.

The erroneous warning #3441 discussed in replies #10 & #11 has not been addressed yet but the internal tracking id has been changed to the new id below.

(Internal tracking id: DPD200253687 - warning #3441)

0 Kudos
Reply