- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Bhaumik Vaidya
- 124字
- 2021-08-13 15:48:19
Steps for creating a CUDA C program on Ubuntu
This section describes the steps to create and execute a basic CUDA C program on Ubuntu using the Nsight Eclipse plugin. The steps are as follows:
- Open Nsight by opening Terminal and typing nsight into it.
- Go to File | New |CUDA C/C++ Projects.
- Give your desired name to the project and click on OK.
- It will create a project with a sample file. Now open this file by double-clicking on it.
- Delete the existing code from the file and write the given code earlier.
- Run the code by pressing the play button. If everything works correctly, you will see Hello, CUDA! displayed on Terminal as shown here:

推薦閱讀
- Boost程序庫完全開發(fā)指南:深入C++”準”標準庫(第5版)
- Mastering Visual Studio 2017
- 編程卓越之道(卷3):軟件工程化
- Web全棧工程師的自我修養(yǎng)
- iOS應用逆向工程(第2版)
- Java 9模塊化開發(fā):核心原則與實踐
- 信息技術應用基礎
- Android開發(fā)案例教程與項目實戰(zhàn)(在線實驗+在線自測)
- Deep Learning with R Cookbook
- C語言程序設計
- Learning D
- jQuery Mobile Web Development Essentials(Second Edition)
- Wearable:Tech Projects with the Raspberry Pi Zero
- Java網絡編程實用精解
- Mastering Swift 4(Fourth Edition)