Build OpenCV with CUDA on Windows 11

Since pre-built OpenCV binaries do not include CUDA modules, this post is a tutorial for building OpenCV with CUDA on Windows 11. The obvious dvantage of OpenCV CUDA is boosting performance of most functions, you can find evidence here. 1. Prerequisite There are a couples of softwares or libraries having been downloaded and installed before getting started: Install the Visual Studio Community 2022 and select Desktop development with C++ workload....

August 21, 2023 814 words 4 min

Setting Up NVIDIA CUDA on WSL 2

Windows Subsystem for Linux (WSL) is a compatibility layer provided by Microsoft that allows you to run a Linux environment directly on WIndows. It will bring Linux applications, utilities and Bash command-line tool directly on Windows without the overhead of traditional virtual machine or dualboot setup. 1. Prequisites The Windows must be upgraded to Windows 10 version 2004 and higher or Windows 11 to install WSL by a single command line....

July 13, 2023 4104 words 20 min

Setting Up NVIDIA CUDA on Windows 11

In this post, I will cover how to setup NVIDIA CUDA on Windows 11. To ensure a smooth setup process, it is crucial to follow the following steps: NVIDIA Drivers. Microsoft Visual Studio 2022 Community. NVIDIA CUDA Toolkit. NVIDIA cuDNN. TensorRT (optional). Miniforge (optional). 1. System Requirements To use CUDA, make sure your machine has a CUDA-capable GPU inside and the Microsoft Windows 11 should be updated 21H2 version. You can verify if your machine has CUDA-supported GPU through Display Adapters section in the Windows Device Manager....

July 6, 2023 2613 words 13 min

Setting Up a Personal Blog With Hugo and GitHub Pages

Creating a personal blog with technical content is a excellent way to enhance the writting skill, keep memorial notes and share personal experience with others. Ideally, these goals need to be achieved when creating and mantaining a blog: Low-cost - Free or as close to free as posisble. Productive - Easy to write and maintain. Cloud Native - Utilizes public cloud services for hosting, allowing for infinite scaling. After researching, I found that using Markdown, Hugo and GitHub Pages is indeed a powerful combination for creating and maintaining a cost-effective, productive, and cloud-native blog....

July 4, 2023 2252 words 11 min