This guide describes the steps to install and verify NVIDIA CUDA on Mac OS X.
This getting started guide explains how to install and check the correct operation of the NVIDIA CUDA development tools on Mac OS X, using the CUDA 6.0 release. It begins with an introduction to CUDA as a parallel computing platform that uses both the CPU and the GPU, then lists the system requirements: a CUDA-capable GPU, Mac OS X 10.8 or later, the gcc or Clang compiler and toolchain installed with Xcode, and the NVIDIA CUDA Toolkit.
The guide then covers prerequisites such as checking whether the graphics card is CUDA-capable, confirming the Mac OS X version, and installing the command-line tools. It describes downloading the CUDA Toolkit and verifying the MD5 checksum, installing the CUDA Driver, Toolkit and read-only Samples packages, setting the PATH and DYLD_LIBRARY_PATH environment variables, and uninstalling with the provided script. Verification steps use the deviceQuery and bandwidthTest samples, and a final chapter points to additional tools and documentation.
| Supported operating system | Mac OS X 10.8 or later |
|---|---|
| Hardware requirement | CUDA-capable NVIDIA GPU |
| Required compiler toolchain | gcc or Clang, installed using Xcode |
| Tested operating systems | Mac OS X 10.9.x and Mac OS X 10.8.x |
| Default CUDA Toolkit install location | /Developer/NVIDIA/CUDA-6.0 |
| CUDA Samples install location | /Developer/NVIDIA/CUDA-6.0/samples |
You need a CUDA-capable GPU, Mac OS X 10.8 or later, the gcc or Clang compiler and toolchain installed using Xcode, and the NVIDIA CUDA Toolkit.
The CUDA kernel extension should load automatically at boot time; verify it with the command kextstat | grep -i cuda.
Run the uninstall script provided with the Toolkit at /Developer/NVIDIA/CUDA-6.0/bin/uninstall.
Run nvcc -V in a terminal window, then build and run sample programs such as deviceQuery and bandwidthTest.