I downloaded the latest version of Nvidia driver for my 9600GT card. I am on Ubuntu 8.10 (32-bit machine). I have the following driver installed according to my NVidia XServer settings
Driver version = 190.42
The driver was installed by running as a sudo.
I am able to compile ALL examples that comes with CUDA-2.3 without any problems. I am having difficulty compiling the OpenCL stuff. I downloaded the following file
When I run this file, this creates two sets of directory, on closer inspection the directory under SDK is a copy of the contents of what is available at the SDK direcotory level. For example, they both have directories called C and OpenCL. This is not how I had it for CUDA. Can some one explain why this is? It is likely I am doing some thing wrong!
If I now change directory in to OpenCL directory, as per the release notes, I get the following
/home//libs/openCL/sdk/OpenCL/common' src/oclUtils.cpp: In function â€˜void oclLogPtx(_cl_program*, _cl_device_id*, const char*)â€™: src/oclUtils.cpp:575: warning: ignoring return value of â€˜size_t fwrite(const void*, size_t, size_t, FILE*)â€™, declared with attribute warn_unused_result ar: creating ../..//OpenCL//common//lib/liboclUtil.a a - obj/release/oclUtils.cpp.o make: Leaving directory /home/libs/openCL/sdk/OpenCL/common’
make: Entering directory
/home/ibs/openCL/sdk/shared' a - obj/release/shrUtils.cpp.o a - obj/release/rendercheckGL.cpp.o a - obj/release/cmd_arg_reader.cpp.o make: Leaving directory /home/libs/openCL/sdk/shared’
make -C src/oclReduction/
make: Entering directory
/home/libs/openCL/sdk/OpenCL/src/oclReduction' oclReduction.cpp: In function â€˜void runTest(int, const char**, ReduceType) [with T = int]â€™: oclReduction.cpp:140: instantiated from here oclReduction.cpp:477: warning: unused variable â€˜runShmooâ€™ oclReduction.cpp: In function â€˜void runTest(int, const char**, ReduceType) [with T = float]â€™: oclReduction.cpp:143: instantiated from here oclReduction.cpp:477: warning: unused variable â€˜runShmooâ€™ /usr/bin/ld: cannot find -lOpenCL collect2: ld returned 1 exit status make: *** [../../..//OpenCL//bin//linux/release/oclReduction] Error 1 make: Leaving directory /home/satheesh/libs/openCL/sdk/OpenCL/src/oclReduction’
make: *** [src/oclReduction/Makefile.ph_build] Error 2
It looks like it can’t build the examples, because its looking for the libOpenCL.so some where? Can some one tell me what is happening here? I thought it may be under /usr/lib like for CUDA, where you can find /usr/lib/libcudart.so - should I have the same for OpenCL? If I should, obviously I don’t have it - does this mean my driver hasn’t built correctly? or am i doing some thing really stupid?
Apologies, I am a little new to this OpenCL/Cuda world …