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

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: 

主站蜘蛛池模板: 高清| 玉田县| 墨玉县| 西乌| 青岛市| 宁武县| 张北县| 民丰县| 平塘县| 辽阳市| 克什克腾旗| 秦安县| 翁源县| 固始县| 当阳市| 晋中市| 沙雅县| 子洲县| 昌平区| 沾益县| 仪征市| 沙坪坝区| 台南县| 镇江市| 宜兴市| 格尔木市| 广宁县| 米脂县| 苍山县| 无棣县| 德江县| 武定县| 大足县| 长治县| 日土县| 杭州市| 三穗县| 灵寿县| 淮阳县| 泽州县| 盐山县|