- 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:

推薦閱讀
- Redis Applied Design Patterns
- WordPress Plugin Development Cookbook(Second Edition)
- Mastering Ext JS
- Python之光:Python編程入門與實(shí)戰(zhàn)
- Python+Tableau數(shù)據(jù)可視化之美
- Mastering Docker
- C指針原理揭秘:基于底層實(shí)現(xiàn)機(jī)制
- Go語言入門經(jīng)典
- Arduino電子設(shè)計(jì)實(shí)戰(zhàn)指南:零基礎(chǔ)篇
- Shopify Application Development
- Developing Java Applications with Spring and Spring Boot
- VMware vSphere 5.5 Cookbook
- OpenStack Sahara Essentials
- Visual Basic 開發(fā)從入門到精通
- C++ Game Development Cookbook