# How can I use GPU to accelerate General Registration (Elastix) module?

**URL:** <https://discourse.slicer.org/t/how-can-i-use-gpu-to-accelerate-general-registration-elastix-module/43129>\
**Category:** Support\
**Tags:** registration, elastix\
**Created:** [May 28, 2025, 7:52am UTC](https://discourse.slicer.org/t/how-can-i-use-gpu-to-accelerate-general-registration-elastix-module/43129 "2025-05-28T07:52:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LanceDuan](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@LanceDuan](https://discourse.slicer.org/u/LanceDuan)\
**Post date:** [May 28, 2025, 7:52am UTC](https://discourse.slicer.org/t/how-can-i-use-gpu-to-accelerate-general-registration-elastix-module/43129/1 "2025-05-28T07:52:28Z")

</div>

Hi all,  
I’m using General Registration (Elastix) to align two different time DICOM CT of one patient, and it works very well!  
However it takes such a long time, about 5min. I checked the CPU and GPU usage status. As you can see in the figures, memory is consumed 84% while GPU is only about 14%. How can I use more GPU to process this module?  
Info of my computer is:

1. CPU: 13th Gen Intel(R) Core™ i7-13650HX 2.60GHz
2. RAM: 16.0GB
3. GPU: NVIDIA GeForce RTX 4060 Laptop 8GB

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/8/b852497d3ad1f4aa9ca2c0fc18e28220081df5b9.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/8/f832ceb2a01db74beb6b898963cd7d5f1a201e9e.png)

---

<div class="post-metadata">

**Author:** ![LanceDuan](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@LanceDuan](https://discourse.slicer.org/u/LanceDuan)\
**Post date:** [May 28, 2025, 8:17am UTC](https://discourse.slicer.org/t/how-can-i-use-gpu-to-accelerate-general-registration-elastix-module/43129/3 "2025-05-28T08:17:38Z")

</div>

It seems like only using Memory to process the computation. And I’ve checked the CUDA in Slicer’s Python Console.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/b/1bed9103078a42381e709c90b79c68e19f7115a3.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/e/1eb21d9459c3b8641fef1f714258a72e6ca3c8b0.png)
