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

Mac

This section covers steps to install CUDA on macOS. It needs the *.dmg installer downloaded from the CUDA website. The steps to install after downloading the installer are as follows:

  1. Launch the installer and follow the onscreen prompt to complete the installation. It will install all prerequisites, CUDA, toolkit, and CUDA samples.
  1. Then, you need to set environment variables to point at CUDA installation using the following commands:
If you have not installed CUDA at the default locations, you need to change the path to point at your installation location.
  export PATH=/Developer/NVIDIA/CUDA-x.x/bin${PATH:+:${PATH}}
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-x.x/lib\
${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
  1.  Run the script: cuda-install-samples-x.x.sh. It will install CUDA samples with write permissions.
  2. After it has completed, you can go to bin/x86_64/darwin/release and run the  deviceQuery project. If the CUDA toolkit is installed and configured correctly, it will display your GPU's device properties.
主站蜘蛛池模板: 鹤峰县| 浙江省| 宁武县| 钟祥市| 讷河市| 铁岭县| 喀什市| 西华县| 锦州市| 乐山市| 长子县| 青川县| 沁源县| 奉贤区| 青阳县| 综艺| 秦安县| 平乡县| 衡水市| 永登县| 安福县| 杭锦旗| 镇坪县| 枣阳市| 峨眉山市| 兖州市| 开封市| 阜新| 宜章县| 景德镇市| 丹东市| 江门市| 常山县| 镇原县| 尼木县| 阜平县| 克什克腾旗| 三门县| 色达县| 天门市| 合阳县|