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

 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:
主站蜘蛛池模板: 台中县| 固始县| 萝北县| 常山县| 浏阳市| 天台县| 秦皇岛市| 剑川县| 紫云| 东乡| 凤城市| 怀集县| 温州市| 商洛市| 平昌县| 汾西县| 古田县| 桐乡市| 金塔县| 庆云县| 湘阴县| 重庆市| 浦县| 绥宁县| 都昌县| 盐城市| 佛学| 高阳县| 隆德县| 彭水| 金溪县| 元江| 龙江县| 晴隆县| 南开区| 康定县| 浦江县| 民县| 黄浦区| 五家渠市| 万载县|