Re:TornadoVM v1.0 Released
by MrBuddyCasino on Wednesday December 06, 2023 @03:52AM
(#38541753)
I wondered about the performance delta to "native" CUDA kernels, and was disappointed there are only benchmark comparisons to single-threaded Java on their website.
[ Parent
| on HN ]
There are some comparisons in some of our group's papers (e.g. [1] Figure 9 where we compare against optimized OpenCL kernels).
In general, from our experience, TornadoVM's relative performance to optimized CUDA or OpenCL kernels depends on the kind of the kernel.
Our data suggests that it can perform between 40% and 90% of the raw execution time of native kernels.
With TornadoVM v1.0 and the integration with native memory via Project Panama, such performance comparisons would be more straightforward since the memory subsystem of TornadoVM can be further optimized.
Of course with this performance, someone would also benefit from ease in programmability since the starting point is existing or new Java code that can be written as single-threaded.
For more power users TornadoVM offers also the Kernel API which is very comparable to OpenCL that allow users to extract more performance by using optimizations such as grid scheduling, local memory, etc.: https://tornadovm.readthedocs.io/en/latest/programming.html#...
[1] https://research.manchester.ac.uk/files/190177400/MPAPADIMIT...
Re:TornadoVM v1.0 Released
by MrBuddyCasino on Wednesday December 06, 2023 @04:16AM
(#38541886)
That’s actually pretty decent, thanks for the detailed answer.
It seems the Manchester website is down. Link to the paper: https://github.com/jjfumero/jjfumero.github.io/blob/master/f...
Just to complement the previous answer. It varies from kernel to kernel. Regarding reductions, the strategy implemented in the TornadoVM JIT compiler allows us to execute reductions offloaded from Java sequential code within 85% of the hand-written OpenCL Kernels:
https://www.researchgate.net/publication/327871451_Using_Com...