# itk and gpu computation

**URL:** https://discourse.itk.org/t/itk-and-gpu-computation/3800
**Category:** Engineering
**Tags:** registration, performance, gpu
**Created:** [January 27, 2021, 9:51am UTC](https://discourse.itk.org/t/itk-and-gpu-computation/3800 "2021-01-27T09:51:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pierrectl](https://discourse.itk.org/user_avatar/discourse.itk.org/pierrectl/32/1420_2.png) [@pierrectl](https://discourse.itk.org/u/pierrectl)
#### Post date: [January 27, 2021, 9:51am UTC](https://discourse.itk.org/t/itk-and-gpu-computation/3800/1 "2021-01-27T09:51:47Z")

</div>

Hello everybody,  
I browsed through the forum in order to find if some itk pipelines such as registration processes can be computed by the gpu of my computer. I saw this topic from 2017: [Is it possible to use GPU for image resample?](https://discourse.itk.org/t/is-it-possible-to-use-gpu-for-image-resample/2775) but it did not help me that much. As I understand, only a few functions of itk are supported by the gpu.  
So I have two questions:

- Can complex itk pipelines be computed by the gpu (such as registration process) ?
- If yes, did developers provide any examples of pipelines which can be computed by the gpu ?

Thank you for your help.

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [January 27, 2021, 2:22pm UTC](https://discourse.itk.org/t/itk-and-gpu-computation/3800/2 "2021-01-27T14:22:47Z")

</div>

> [@pierrectl](#):
>
> As I understand, only a few functions of itk are supported by the gpu.

That is correct. Gaussian smoothing and a few friends have GPU variants. Registration is not included. This lack of filters makes it hard to have a processing pipeline entirely on the GPU.

---

<div class="post-metadata">

### Author: ![pierrectl](https://discourse.itk.org/user_avatar/discourse.itk.org/pierrectl/32/1420_2.png) [@pierrectl](https://discourse.itk.org/u/pierrectl)
#### Post date: [January 28, 2021, 8:19am UTC](https://discourse.itk.org/t/itk-and-gpu-computation/3800/3 "2021-01-28T08:19:33Z")

</div>

Ok, thank you for the precision.

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [January 29, 2021, 10:38pm UTC](https://discourse.itk.org/t/itk-and-gpu-computation/3800/4 "2021-01-29T22:38:28Z")

</div>

Experimental Python packages on Linux are available for the ITKElastix remote module:

[https://github.com/InsightSoftwareConsortium/ITKElastix](https://github.com/InsightSoftwareConsortium/ITKElastix)

They use GPU resampling.
