Operating system: Mac OS X 10.5.8
Graphics/Displays: NVIDIA GeForce 9400
GCC is installed by installing XCode (version 3.1), and can be found in /usr/bin/ (Version of GCC is: gcc-4.0 and gcc-4.2)
After doing the following steps, I still couldn’t get deviceQuery work. In terminal, the current directory is “/Developer/GPU Computing/C/bin/darwin/release”. When run deviceQuery, it shows the following information:
[codebox]flatlake$ deviceQuery
-bash: deviceQuery: command not found[/codebox]
I did the following steps several times and couldn’t get it right. It will be really appreciated if you could provide me any related information and help. Thanks in advance!
The installation steps are:
Step 1. Install CUDA DRIVER (cudadriver_3-1.1.14_macos.dmg)
Step 2. Remove previous version and install CUDA Toolkit (from http://developer.nvidia.com/object/cuda_3_1_downloads.html)
Step 3. Restart the system
Step 4. Terminal commands: Define the environment variables.
$ export PATH=/usr/local/cuda/bin:$PATH
$ DYLD_LIBRARY_PATH=/usr/local/cuda/lib:$DYLD_LIBRARY_PATH
Save the above commands in ~/.bash_profile
Step 5. Install the CUDA SDK (from http://developer.nvidia.com/object/cuda_3_1_downloads.html)
Installed in /Developer/GPU Computing/
Step 6. running nvcc -V and got the following information:
[codebox]nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2010 NVIDIA Corporation
Built on Thu_Jun_17_16:11:55_PDT_2010
Cuda compilation tools, release 3.1, V0.2.1221[/codebox]
Step 7. Type “make” in command terminal in /Developer/GPU Computing/C, and obtained the following information: (the last line is “Finished building all”)
a - obj/i386/release/bank_checker.cpp.o
a - obj/i386/release/cmd_arg_reader.cpp.o
a - obj/i386/release/cutil.cpp.o
a - obj/i386/release/stopwatch.cpp.o
a - obj/i386/release/stopwatch_linux.cpp.o
a - obj/i386/release/multithreading.cpp.o
a - obj/i386/release/paramgl.cpp.o
a - obj/i386/release/param.cpp.o
a - obj/i386/release/rendercheck_gl.cpp.o
./…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
./…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
a - obj/i386/release/shrUtils.cpp.o
a - obj/i386/release/rendercheckGL.cpp.o
a - obj/i386/release/cmd_arg_reader.cpp.o
make -C src/alignedTypes/
make -C src/asyncAPI/
make -C src/bandwidthTest/
make -C src/bicubicTexture/
bicubicTexture.cpp:73:1: warning: “MAX” redefined
In file included from …/…/common/inc/cutil_inline.h:21,
from bicubicTexture.cpp:62:
…/…/common/inc/cutil_inline_drvapi.h:29:1: warning: this is the location of the previous definition
make -C src/binomialOptions/
make -C src/BlackScholes/
make -C src/boxFilter/
…/…/…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
make -C src/clock/
make -C src/concurrentKernels/
make -C src/convolutionFFT2D/
main.cpp: In function ‘int snapTransformSize(int)’:
main.cpp:50: warning: comparison between signed and unsigned integer expressions
make -C src/convolutionSeparable/
…/…/…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
make -C src/convolutionTexture/
main.cpp: In function ‘int main(int, char**)’:
main.cpp:127: warning: comparison between signed and unsigned integer expressions
make -C src/cppIntegration/
make -C src/dct8x8/
…/…/…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
…/…/…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
make -C src/deviceQuery/
make -C src/deviceQueryDrv/
deviceQueryDrv.cpp: In function ‘int main(int, char**)’:
deviceQueryDrv.cpp:44: warning: unused variable ‘err’
make -C src/dwtHaar1D/
…(omitted a lot of lines here)
make -C src/vectorAdd/
make -C src/vectorAddDrv/
make -C src/volumeRender/
volumeRender.cpp:263: warning: unused parameter ‘x’
volumeRender.cpp:263: warning: unused parameter ‘y’
…/…/…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used
Finished building all