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

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: 

主站蜘蛛池模板: 遂溪县| 黄大仙区| 宁国市| 双柏县| 泰顺县| 宁津县| 龙岩市| 商丘市| 兴宁市| 壤塘县| 沾益县| 浏阳市| 安乡县| 罗定市| 凭祥市| 五大连池市| 江都市| 喀什市| 梁河县| 海南省| 山阳县| 云和县| 调兵山市| 阜新| 陇西县| 台湾省| 绥芬河市| 徐州市| 揭阳市| 盐亭县| 博乐市| 峨眉山市| 昌都县| 九龙城区| 香格里拉县| 雅安市| 古交市| 武平县| 龙州县| 长阳| 安阳市|