Posts

Showing posts with the label CUDA

Compiling OpenCV with CUDA Support on Windows

Image
I have actively avoided doing this for a while , but now I need to run CUDA-dependent OpenCV Code on a Windows Machine.  So it's time to bite the bullet and get it done. Want to go for a ride?  It will be fun, I promise! Background This is being run on a Gigabyte Motherboard with a 10th-Generation i7 CPU, 64GB RAM and Windows 11 (Release).  You want at least 4GB of RAM and an i5 to do the build with any sort of efficiency. First, get your pre-requisites You will need: Visual Studio 2019.  The free version is just fine. ( https://www.visualstudio.com ) OpenCV and OpenCV-Contrib source code from Github ( https://github.com/opencv ) Python (https://www.python.org) CMake ( https://www.cmake.org ) NVIDIA Drivers to suit your GPU ( https://www.nvidia.com ) NVIDIA CUDA libraries and CuDNN version to suit your GPU ( https://developer.nvidia.com ) A pot of coffee or other suitable beverage Install CUDA, Python, Visual Studio and CMake.  Make sure they are in the user pat...