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

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.
主站蜘蛛池模板: 洮南市| 霍邱县| 乌拉特中旗| 巴林右旗| 楚雄市| 稷山县| 西乌珠穆沁旗| 陇川县| 吐鲁番市| 三明市| 万宁市| 会同县| 博罗县| 白玉县| 治多县| 巢湖市| 常熟市| 常熟市| 阜新市| 无棣县| 彭州市| 金乡县| 西安市| 万荣县| 康马县| 渝北区| 洪雅县| 四会市| 松原市| 彭阳县| 绥宁县| 巴林右旗| 宁夏| 泽普县| 乐都县| 阿克陶县| 建湖县| 洛南县| 九江县| 马公市| 兴文县|