# Problems with CUDA in OpenCV

**URL:** <https://forum.opencv.org/t/problems-with-cuda-in-opencv/16446>\
**Category:** Uncategorized\
**Created:** [February 12, 2024, 7:12am UTC](https://forum.opencv.org/t/problems-with-cuda-in-opencv/16446 "2024-02-12T07:12:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolpow](https://avatars.discourse-cdn.com/v4/letter/c/c6cbf5/32.png) [@coolpow](https://forum.opencv.org/u/coolpow)\
**Post date:** [February 12, 2024, 7:12am UTC](https://forum.opencv.org/t/problems-with-cuda-in-opencv/16446/1 "2024-02-12T07:12:35Z")

</div>

I am a beginner, under pycharm, pytorch can use CUDA, can find the GPU device, indicating that my NVIDIA driver is no problem. pip opencv-python and pip opencv-contrib-python, devices for which the GPU cannot be found. What could have gone wrong?

---

<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:** [February 12, 2024, 7:38am UTC](https://forum.opencv.org/t/problems-with-cuda-in-opencv/16446/2 "2024-02-12T07:38:26Z")

</div>

nothing went wrong.

pycharm is an IDE _for_ Python. it does not “use” CUDA. packages you installed to your python may be able to use CUDA.

“support” means someone wrote a lot of CUDA code that duplicates non-CUDA functionality. you need to understand _what_ you want CUDA-accelerated. it’s not a “just do everything with CUDA” thing that magically makes everything better. you should read a lot of introductions and guides for this kind of thing.

since you’re a beginner, don’t even go near any CUDA at all. you should first learn more about how computers work, what Python is, what pycharm is, and how to program in general.

* * *

if you do want the CUDA modules in opencv, there are ways.

the official `opencv-python` package does not support CUDA. it does support OpenCL.

I don’t know if `opencv-python-contrib` contains the CUDA modules that are among the contrib modules.

cudawarped maintains builds of OpenCV with CUDA specifically included. use one of the versioned releases here:

> **[Releases · cudawarped/opencv-python-cuda-wheels](https://github.com/cudawarped/opencv-python-cuda-wheels/releases)**
>
> Automated CI toolchain to produce precompiled opencv-python, opencv-python-headless, opencv-contrib-python and opencv-contrib-python-headless packages. - cudawarped/opencv-python-cuda-wheels
