Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jaisimha_sai_k_
Beginner
56 Views

offload implementation of pthreads

Jump to solution

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
56 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

1 Reply
James_C_Intel2
Employee
57 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

Reply