Hosted mode

Bahram Yarahmadi bahram.yarahmadi at
Sun May 22 14:23:31 UTC 2016

My framework takes a standard .class file as an input and tries to generate
opencl code from lambdas and streams and runs it on GPUs but what should I
do for the rest of the program ? Should I generate graal IR for them and
attach or modify the part which called lambda and streams ? then try to run
the main method of .class file

On Sat, May 21, 2016 at 7:39 AM, Bahram Yarahmadi <
bahram.yarahmadi at> wrote:

> Hello guys
> I am using graal in a hosted mode.I built a project and with the help of
> Reflection APIs and Graal resolved types and static analysis ,I built the
> Graal IR from my specific method and with openCL backend which I have,I
> generated OpenCL C
> I have a question
> I just want to use the graal just for generating OpenCL code from some
> Specific method which I personally generate Graal IR and the rest of the
> program must be treated as a normal java program,What shoud I do ? Should I
> generate Graal IR for the rest of the program to ?
> This is the logic of my program (Just for clarifyintg )
> //ResolveJavaMethod method=my specified method
> //Generate graphIR from the method
> //Do some Optimizations and static analysis
> //Generate High opencl Backend
> //??????????????
> I don't know what to do to hook the rest of the program in a normal way
> Thanks,

More information about the graal-dev mailing list