# Is it possible to assign GPU instead of CPU to do algorithms that already implemented inside OpenCV

**URL:** <https://forum.opencv.org/t/is-it-possible-to-assign-gpu-instead-of-cpu-to-do-algorithms-that-already-implemented-inside-opencv/14472>\
**Category:** Python\
**Tags:** gpu, nvidia\
**Created:** [September 7, 2023, 3:30am UTC](https://forum.opencv.org/t/is-it-possible-to-assign-gpu-instead-of-cpu-to-do-algorithms-that-already-implemented-inside-opencv/14472 "2023-09-07T03:30:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lukita](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/lukita/32/9125_2.png) [@Lukita](https://forum.opencv.org/u/Lukita)\
**Post date:** [September 7, 2023, 3:30am UTC](https://forum.opencv.org/t/is-it-possible-to-assign-gpu-instead-of-cpu-to-do-algorithms-that-already-implemented-inside-opencv/14472/1 "2023-09-07T03:30:28Z")

</div>

Hi all,  
I’m using a bunch of OpenCV’s algorithms such as SIFT, perspectiveTransform,…  
The speed of the program is kinda slow despite the result of each algorithm is good. I had read some documents about using GPU (on Jetson devices) to boost up performances, However, they usually be used for neural networks.  
Are there any ways to only use GPU for OpenCV algorithm? Especially on Jetson devices ?  
Thank you.

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [September 7, 2023, 3:00pm UTC](https://forum.opencv.org/t/is-it-possible-to-assign-gpu-instead-of-cpu-to-do-algorithms-that-already-implemented-inside-opencv/14472/2 "2023-09-07T15:00:19Z")

</div>

yes

> **[OpenCV Transparent API | LearnOpenCV #](https://learnopencv.com/opencv-transparent-api/)**
>
> How to use Transparent API ( T-API or TAPI ) in OpenCV 3 to significantly speed up existing code. TAPI uses OpenCL under the hood.

and if you can run CUDA, get the cuda modules from the contrib repo (or `opencv-contrib-python`) and use those directly.
