I have a code written in c++ which uses pthreads. I have managed to generate a program version which uses shared libs and which has succesfully ran on XEON Phi (I have seen 100 threads running on the MIC). I am in the process of convincing icc/icpc to compile without errors a static version of the same program to reduce the overhead generated by the shared lib function calls.
I wonder what happens with the libs which were not compiled with icc and definitely not for MIC architecture. I mean what happens when pthreads functions are called from a program which runs on MIC? Do I have to recompile pthreads for the MIC architecture?