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

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: 

主站蜘蛛池模板: 兴安县| 陈巴尔虎旗| 宿州市| 威信县| 甘泉县| 潼关县| 曲靖市| 临朐县| 延寿县| 丘北县| 商丘市| 观塘区| 沂水县| 麦盖提县| 九龙城区| 沂源县| 乌拉特前旗| 郧西县| 都匀市| 桦川县| 长葛市| 石渠县| 汉川市| 新乡市| 阿拉善右旗| 本溪| 贡山| 环江| 永州市| 南昌县| 镇江市| 合作市| 揭阳市| 兖州市| 衢州市| 宝应县| 镇坪县| 华安县| 西畴县| 图木舒克市| 安阳市|