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

 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:
主站蜘蛛池模板: 灌云县| 铜梁县| 高碑店市| 监利县| 盐源县| 礼泉县| 高安市| 响水县| 栾川县| 甘孜县| 伊通| 清丰县| 丽水市| 扎赉特旗| 株洲县| 沾化县| 崇文区| 大荔县| 岑溪市| 南澳县| 滨海县| 黎平县| 宣恩县| 娱乐| 保山市| 许昌市| 平利县| 嫩江县| 璧山县| 阿尔山市| 嘉祥县| 山丹县| 洪洞县| 衡山县| 溆浦县| 习水县| 兴化市| 富顺县| 专栏| 宜昌市| 陆丰市|