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

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: 

主站蜘蛛池模板: 绥宁县| 乐平市| 隆林| 永顺县| 怀远县| 江达县| 沛县| 杂多县| 洛浦县| 公主岭市| 拉孜县| 江门市| 碌曲县| 泽普县| 辉南县| 信宜市| 新邵县| 吉安市| 麦盖提县| 长岛县| 巴彦县| 大荔县| 泸州市| 库尔勒市| 乐平市| 武清区| 昔阳县| 陇南市| 古田县| 郁南县| 崇明县| 丰城市| 特克斯县| 师宗县| 徐水县| 孙吴县| 阳新县| 沅江市| 海林市| 陕西省| 岗巴县|