# Use OpenCV with CUDA support in production

**URL:** <https://forum.opencv.org/t/use-opencv-with-cuda-support-in-production/2859>\
**Category:** C++\
**Tags:** build, cuda\
**Created:** [April 20, 2021, 7:35am UTC](https://forum.opencv.org/t/use-opencv-with-cuda-support-in-production/2859 "2021-04-20T07:35:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![st.matkov](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@st.matkov](https://forum.opencv.org/u/st.matkov)\
**Post date:** [April 20, 2021, 7:35am UTC](https://forum.opencv.org/t/use-opencv-with-cuda-support-in-production/2859/1 "2021-04-20T07:35:15Z")

</div>

I built Opencv 3.4.13 (for Windows) with CUDA 11.2 support successfully and then I copied this build to another machine with CUDA 9.2. When I tried to make OpenCV project on that machine with CMake, it gives me an error:

> Could not find CUDA: Found unsuitable version “9.2” but required is exact version “11.2”

Is there any way to avoid this error, or I can use only specific version of CUDA which I build OpenCV with ?

---

<div class="post-metadata">

**Author:** ![kbarni](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/kbarni/32/26_2.png) [@kbarni](https://forum.opencv.org/u/kbarni)\
**Post date:** [April 20, 2021, 7:46am UTC](https://forum.opencv.org/t/use-opencv-with-cuda-support-in-production/2859/2 "2021-04-20T07:46:09Z")

</div>

Yep. Generally you need to use the same versions of the external libraries when deploying an application. This is true for other libraries too, like Qt (used for displaying) for example - which also gets updated quite often.

---

<div class="post-metadata">

**Author:** ![st.matkov](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@st.matkov](https://forum.opencv.org/u/st.matkov)\
**Post date:** [April 20, 2021, 7:59am UTC](https://forum.opencv.org/t/use-opencv-with-cuda-support-in-production/2859/3 "2021-04-20T07:59:44Z")

</div>

Thank you for your answer! And what if I build a solution with CUDA 11.2 support and I need to use this solution on another machine with CUDA 9.2, do I need to have all CUDA 11.2 .dll near my executables ?
