官术网_书友最值得收藏!

 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:

  1. Open Nsight by opening Terminal and typing nsight into it.
  2. Go to File | New |CUDA C/C++ Projects.
  3. Give your desired name to the project and click on OK.
  4. It will create a project with a sample file. Now open this file by double-clicking on it. 
  1. Delete the existing code from the file and write the given code earlier. 
  2. Run the code by pressing the play button. If everything works correctly, you will see Hello, CUDA! displayed on Terminal as shown here:
主站蜘蛛池模板: 营山县| 泸溪县| 蓬莱市| 门头沟区| 屯留县| 德令哈市| 民乐县| 汉源县| 封丘县| 莒南县| 定结县| 塔城市| 平江县| 浦东新区| 阿克陶县| 平果县| 贵溪市| 静海县| 淳化县| 大石桥市| 汶川县| 阿克陶县| 鲁山县| 皋兰县| 汪清县| 丰原市| 明光市| 凤山县| 彩票| 青州市| 绥宁县| 正宁县| 都昌县| 乐陵市| 万安县| 岳西县| 河东区| 咸阳市| 龙州县| 辉南县| 莱阳市|