当前位置:网站首页>CUDA exploration

CUDA exploration

2022-07-06 22:45:00 Liuqz2009

cuda command

View version

nvcc -V

Check whether the graphics card driver is installed successfully

nvidia-smi


install

2022 The most detailed , Abreast of the times Win11/WIN10 install CUDA11.2 and cuDNN( The work of the pit ) Perfect tutorial _Vertira The blog of -CSDN Blog _cuda11.2 install

Check... When installing Visual Studio Integration , stay VS Build will appear cuda Options for the project

Visual Studio Integration (MSBuild) | Microsoft Docs

Nsight Compute Use _USST_Coder The blog of -CSDN Blog

  After the installation , open VS, Similar will be added CUDA 11.1 Runtime Such an option

VS newly build cuda engineering _ Cherish Nanyi's blog -CSDN Blog _vs establish cuda project

Existing Visual Studio Add... To the project CU file _hollyzhiyue The blog of -CSDN Blog

It is mainly about BuildCustomizations Copy the files in to VS The corresponding position of :

  <ImportGroup Label="ExtensionSettings">
    <Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 11.1.props" />
  </ImportGroup>

  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
    <Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 11.1.targets" />
  </ImportGroup>

 $(VCTargetsPath) In different VS Corresponding to different positions in the version :

VS2015

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations

 VS2017

C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations

 VS2019

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations

uninstall

https://www.csdn.net/tags/NtzaIg1sNDgwNDAtYmxvZwO0O0OO0O0O.html

cudnn

cuDNN download _ Ben Zun is meow's blog -CSDN Blog _cudnn download

CUDA compile

CUDA compile ( One )--- Use nvcc compile cuda_fb_help The blog of -CSDN Blog _cuda compile

CUDA compile ( Two )--- use CMake Mixed compilation C++ And cuda_fb_help The blog of -CSDN Blog _cuda_add_library

nvcc gcc g++ Mixed compiler programming _aban-mtd The blog of -CSDN Blog

原网站

版权声明
本文为[Liuqz2009]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061525395974.html