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

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: 

主站蜘蛛池模板: 福安市| 东至县| 绥化市| 伊宁县| 东乌| 怀宁县| 红安县| 嘉兴市| 满城县| 遵化市| 瓦房店市| 中山市| 曲松县| 枣阳市| 招远市| 织金县| 新乐市| 依兰县| 凤凰县| 鹰潭市| 开阳县| 聂拉木县| 平定县| 文水县| 黑龙江省| 饶平县| 阳江市| 桦甸市| 斗六市| 房产| 中卫市| 周至县| 武城县| 临汾市| 精河县| 南川市| 汕头市| 昌平区| 邵阳市| 滁州市| 普陀区|