- Download and install CUDA toolkit and CUDA SDK.
- When installing the CUDA toolkit, click the Customize button on the Installation Type panel of the installer. Then be sure that CUDAKext is selected for installation. If we do not do this, CUDA applications will complain "no CUDA capable device".
- After installing add the following to .bash_profile.
export PATH=/usr/local/cuda/bin:$PATH
export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH - After installing the CUDA SDK,
cd /Developer/CUDA/lib
Otherwise, we will get the following linker error when building CUDA applications:
ranlib *.lib
ld: in ../../lib/libcutil.a, archive has no table of contents - Build CUDA sample applications:
cd /Developer/CUDA
The result application binaries will be installed to /Developer/CUDA/bin/darwin/release.
make
Jun 21, 2009
Make CUDA Works on MacBook Pro
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment