Posted by
bnorthan on
May 10, 2021; 10:26am
URL: http://imagej.273.s1.nabble.com/Does-Java-use-the-GPU-tp5024656p5024657.html
Hi Robert
Currently java does not natively use the GPU. However there are many
efforts to implement ImageJ/Fiji image processing on the GPU. One of the
most mature is CLIJ (
https://clij.github.io/). Typically the macro or
plugin writer would have to explicitly move the image data from the CPU to
the GPU, then make calls to GPU compatible image processing libraries, then
move the image back to the CPU when finished. Some newer plugins for
ImageJ are using the GPU in this manner. The plugin web page will
usually make this clear. So when deciding between trade-offs between GPU
or CPU it is a good idea to check all the plugins to be run, and see if
they make use of the GPU or not. It is unlikely that current imagej
plugins will use the GPU under the hood, without making it clear to the
user. Although that could change in the near future as GPU processing
becomes more tightly integrated with the ImageJ ecosystem.
Brian
Brian
On Sun, May 9, 2021 at 12:17 PM Robert Dougherty <
[hidden email]> wrote:
> Dear All,
> I've been asked a question about selecting a computer: is the speed of the
> CPU or the GPU more important? In this case the plugins to be executed are
> very compute intensive and only make images of the results at the end. So
> the the first thought is CPU. But a colleague suggested that maybe Java is
> using the GPU for numerics behind the scene. Clearly this could be made to
> happen by calling a library that finds and uses a GPU on purpose. Is
> ImageJ doing this explicitly or somehow implicitly, apart from displaying
> graphics? I think probably not, since using the the FPU on the CPU would be
> faster than setting up a call to the GPU unless a lot of operations were
> queued up.
>
> Bob
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html