Software Archive
Read-only legacy content
17061 Discussions

offload implementation of pthreads

jaisimha_sai_k_
Beginner
212 Views

Is it possible to migrate pthreads to particular cores on multiple coprocessors from host system  like OPEN MP offload implementation?

0 Kudos
1 Solution
James_C_Intel2
Employee
212 Views

Is it possible to migrate pthreads to particular cores on multiple coprocessors from host system  like OPEN MP offload implementation?

Short answer: No.
Longer answer: OpenMP TARGET does not migrate threads. The threads which execute on the Knights processor inside the target region are unrelated to those that were executing on the host outside the target region. (They are inside a different process, on a different machine, and the original thread still exists.)
What you can do is to use the Co-processor Offload Infrastructure (COI) to create remote processes. (See https://software.intel.com/en-us/articles/offload-runtime-for-the-intelr-xeon-phitm-coprocessor). For instance, there is code that does this (to implement the OpenMP TARGET directives), in the LLVM OpenMP runtime at http://llvm.org/svn/llvm-project/openmp/trunk/offload/src/coi/ .
 

View solution in original post

0 Kudos
1 Reply
James_C_Intel2
Employee
213 Views

Is it possible to migrate pthreads to particular cores on multiple coprocessors from host system  like OPEN MP offload implementation?

Short answer: No.
Longer answer: OpenMP TARGET does not migrate threads. The threads which execute on the Knights processor inside the target region are unrelated to those that were executing on the host outside the target region. (They are inside a different process, on a different machine, and the original thread still exists.)
What you can do is to use the Co-processor Offload Infrastructure (COI) to create remote processes. (See https://software.intel.com/en-us/articles/offload-runtime-for-the-intelr-xeon-phitm-coprocessor). For instance, there is code that does this (to implement the OpenMP TARGET directives), in the LLVM OpenMP runtime at http://llvm.org/svn/llvm-project/openmp/trunk/offload/src/coi/ .
 
0 Kudos
Reply