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

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.
主站蜘蛛池模板: 徐水县| 浦县| 商水县| 平潭县| 松潘县| 泾阳县| 大埔县| 贵阳市| 甘洛县| 鹤庆县| 昆明市| 定日县| 集安市| 青冈县| 香格里拉县| 堆龙德庆县| 大姚县| 鹤壁市| 延庆县| 宝兴县| 凤城市| 玛沁县| 扶沟县| 安西县| 新巴尔虎右旗| 江城| 报价| 易门县| 四子王旗| 平顶山市| 金堂县| 平定县| 依兰县| 饶河县| 呼伦贝尔市| 舟山市| 东乡县| 宜都市| 霍邱县| 九江市| 柳林县|