- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Bhaumik Vaidya
- 139字
- 2021-08-13 15:48:19
Steps for creating a CUDA C program on Windows
This section describes the steps to create and execute a basic CUDA C program on Windows using Visual Studio. The steps are as follows:
- Open Microsoft Visual Studio.
- Go to File | New | Project.
- Select NVIDIA | CUDA 9.0 | CUDA 9.0 Runtime.
- Give your desired name to the project and click on OK.
- It will create a project with a sample kernel.cu file. Now open this file by double-clicking on it.
- Delete existing code from the file and write the given code earlier.
- Build the project from the Build tab and press Ctrl + F5 to debug the code. If everything works correctly, you will see Hello, CUDA! displayed on the command line, as shown here:
推薦閱讀
- 深入核心的敏捷開發:ThoughtWorks五大關鍵實踐
- 零基礎學C++程序設計
- Instant Zepto.js
- MATLAB應用與實驗教程
- Windows Forensics Cookbook
- SQL基礎教程(視頻教學版)
- HDInsight Essentials(Second Edition)
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(入門與提高篇)
- 青少年學Python(第1冊)
- Learning Material Design
- Zabbix Performance Tuning
- Android移動應用項目化教程
- 零基礎學編程系列(全5冊)
- Mastering Python
- Java 9:Building Robust Modular Applications