Software Archive
Read-only legacy content

R on Xeon Phi

CPati2
New Contributor III
317 Views

Hi All,

Is it possible to make use of OpenMP thread distribution and affinity for R on Xeon Phi? If yes, please share resources that can help understand how to optimize R for Xeon Phi.

Since, R code runs on R engine and doesn't go through the linking process, I am not sure how this will work out.

Any suggestion will help.

Thanks.

0 Kudos
1 Solution
jimdempseyatthecove
Honored Contributor III
317 Views

Let me first state that I am not an R programmer. From https://en.wikipedia.org/wiki/R_(programming_language) it states that R is an interpreter written primarily in "C, Fortran, and R". And "For computationally intensive tasks, C, C++, and Fortran code can be linked and called at run time."

While the interpreter itself may not (necessarily) be OpenMP'd, you should be able to write support routines that use OpenMP'd C and/or Fortran "kernels".

Jim Dempsey

View solution in original post

0 Kudos
1 Reply
jimdempseyatthecove
Honored Contributor III
318 Views

Let me first state that I am not an R programmer. From https://en.wikipedia.org/wiki/R_(programming_language) it states that R is an interpreter written primarily in "C, Fortran, and R". And "For computationally intensive tasks, C, C++, and Fortran code can be linked and called at run time."

While the interpreter itself may not (necessarily) be OpenMP'd, you should be able to write support routines that use OpenMP'd C and/or Fortran "kernels".

Jim Dempsey

0 Kudos
Reply