changes to Hotspot to support multiple targets
Ivan Krylov
ivan.p.krylov at gmail.com
Sun Dec 16 12:16:20 PST 2012
This is indeed a non-typical target for the Hotspot. AFAIK, Hotspot does
not support heterogeneous targets of any kind. I'd suggest to implement
as a first step support for the interpreter-only that would force
compilation for the GPU-suitable code (whever is used to mark a given
method or branch "GPU-suitable"). While for x86 the transition from
interpreter to compiled code happens with OSR (on-stack replacement) in
case of sumatra it would be a call to the SC to start execution.
For some simple compute-intensive examples this could be a good proof of
concept because the host code gets called just once and will be
interpreted anyway and the compute-intensive code gets compilet for GPS
and executed for GPU.
At the later stage a new target would need be set up (call it HSA).
Thanks,
Ivan
On 12-Dec-12 20:51, Venkatachalam, Vasanth wrote:
> Hotspot supports generating code for a single ISA (e.g., x86) at a time. However, to have the flexibility of executing code on either the CPU or the GPU, the compilers and code generators for both targets would need to coexist and communicate with each other.
>
> Do people have ideas on how this change can be implemented in Hotspot?
>
> Vasanth
>
>
> --
> Vasanth Venkatachalam
> AMD Runtimes
> (512)602-6177
>
More information about the sumatra-dev
mailing list