- 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:
推薦閱讀
- 從零構(gòu)建知識(shí)圖譜:技術(shù)、方法與案例
- C# 從入門(mén)到項(xiàng)目實(shí)踐(超值版)
- 算法大爆炸:面試通關(guān)步步為營(yíng)
- C#程序設(shè)計(jì)(慕課版)
- SEO實(shí)戰(zhàn)密碼
- 微服務(wù)架構(gòu)深度解析:原理、實(shí)踐與進(jìn)階
- 區(qū)塊鏈技術(shù)進(jìn)階與實(shí)戰(zhàn)(第2版)
- MINECRAFT編程:使用Python語(yǔ)言玩轉(zhuǎn)我的世界
- OpenStack Networking Essentials
- Troubleshooting Citrix XenApp?
- Python預(yù)測(cè)之美:數(shù)據(jù)分析與算法實(shí)戰(zhàn)(雙色)
- WordPress Search Engine Optimization(Second Edition)
- Web前端測(cè)試與集成:Jasmine/Selenium/Protractor/Jenkins的最佳實(shí)踐
- Java Web入門(mén)很輕松(微課超值版)
- 流程讓管理更高效:流程管理全套方案制作、設(shè)計(jì)與優(yōu)化