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

Steps for creating a CUDA C program on Windows 

This section describes the steps to create and execute a basic CUDA C program on Windows using Visual Studio. The steps are as follows:

  1. Open Microsoft Visual Studio.
  2. Go to File | New | Project.
  3. Select NVIDIA | CUDA 9.0 | CUDA 9.0 Runtime.
  4. Give your desired name to the project and click on OK.
  5. It will create a project with a sample kernel.cu file. Now open this file by double-clicking on it. 
  6. Delete existing code from the file and write the given code earlier.
  7. Build the project from the Build tab and press Ctrl + F5 to debug the code. If everything works correctly, you will see Hello, CUDA! displayed on the command line, as shown here: 

主站蜘蛛池模板: 德州市| 交口县| 勐海县| 崇仁县| 喀喇沁旗| 九寨沟县| 汉阴县| 武川县| 西华县| 万宁市| 吴桥县| 老河口市| 玉溪市| 荔波县| 轮台县| 藁城市| 吕梁市| 满洲里市| 湖口县| 邢台市| 明光市| 新干县| 库伦旗| 文山县| 九江市| 武安市| 靖西县| 杨浦区| 东乡族自治县| 出国| 陆川县| 西贡区| 婺源县| 康乐县| 明星| 三亚市| 屯留县| 新田县| 抚顺市| 宜良县| 连云港市|