- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Bhaumik Vaidya
- 142字
- 2021-08-13 15:48:18
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:
- Launch the installer and follow the onscreen prompt to complete the installation. It will install all prerequisites, CUDA, toolkit, and CUDA samples.
- 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}}
- Run the script: cuda-install-samples-x.x.sh. It will install CUDA samples with write permissions.
- 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.
推薦閱讀
- Android Jetpack開發(fā):原理解析與應(yīng)用實(shí)戰(zhàn)
- Java面向?qū)ο筌浖_發(fā)
- Microsoft Dynamics 365 Extensions Cookbook
- PowerCLI Cookbook
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動(dòng)畫(原書第3版)
- R語言游戲數(shù)據(jù)分析與挖掘
- OpenNI Cookbook
- Interactive Applications Using Matplotlib
- C語言實(shí)驗(yàn)指導(dǎo)及習(xí)題解析
- QGIS Python Programming Cookbook(Second Edition)
- HoloLens與混合現(xiàn)實(shí)開發(fā)
- 深入理解BootLoader
- Continuous Delivery and DevOps:A Quickstart Guide Second Edition
- HTML5 Canvas核心技術(shù):圖形、動(dòng)畫與游戲開發(fā)
- Java 7 Concurrency Cookbook