- 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.
推薦閱讀
- Mastering LibGDX Game Development
- C#程序設計基礎:教程、實驗、習題
- 大學計算機基礎實驗指導
- PySide 6/PyQt 6快速開發與實戰
- 零基礎學C語言程序設計
- Getting Started with Nano Server
- Cocos2d-x Game Development Blueprints
- Bootstrap for Rails
- SQL Server 入門很輕松(微課超值版)
- UX Design for Mobile
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- Python數據預處理技術與實踐
- VMware vSphere 5.5 Cookbook
- Testing Practitioner Handbook
- Web前端開發實戰教程(HTML5+CSS3+JavaScript)(微課版)