I want to improve a JAVA program performances using GPU programming. After some research on the internet I found that it is possible if i use jcuda or jocl, but the problem is that the kernel code must be written in C in both cases. and the algorithm that i want every thread to execute is very complicated to be written in C (it does some computations to know if there will be an accident between two aircrafts) so an object-oriented language is necessery.
Is there a solution ? or must we translate the whole project to C++ ?
Thanks for your help !