- 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:
推薦閱讀
- Java語言程序設計
- Java多線程編程實戰(zhàn)指南:設計模式篇(第2版)
- Django Design Patterns and Best Practices
- 程序員考試案例梳理、真題透解與強化訓練
- Scratch 3游戲與人工智能編程完全自學教程
- Backbone.js Blueprints
- Scala Reactive Programming
- Node.js區(qū)塊鏈開發(fā)
- 深度學習入門:基于Python的理論與實現(xiàn)
- 大規(guī)模語言模型開發(fā)基礎與實踐
- Professional JavaScript
- 深入理解MySQL主從原理
- Getting Started with Hazelcast
- Learning Ext JS(Fourth Edition)
- 微信小程序開發(fā)圖解案例教程:附精講視頻(第3版)