Search code examples
scalaparallel-processinghardwarexeon-phi

Using Xeon Phi with JVM-based language


Is it possible to use Xeon Phi using JVM-based language such as Scala? Is there any example?


Solution

  • It is not officially supported, however, you can still build JVM on your own.

    I have built JamVM with GNU Classpath and slightly modified version of libffi. You can also try with zero-assembler version of HotSpot. As a result, you can get extremely slow virtual machine - even using 60 threads it was more than 10 times slower than my quad core mobile i7 CPU. On the other hand, it is a great opportunity to test scalability of Java implementations that run on tens of threads simultaneously.

    Another idea is to use Aparapi tool - parts of Java bytecode are translated into OpenCL and executed on Phi.