Objet : Developers list for StarPU
Archives de la liste
- From: ASD D <ajitsdeshpande@gmail.com>
- To: starpu-devel@lists.gforge.inria.fr
- Subject: [Starpu-devel] Linker errors in make while trying to build starpu
- Date: Fri, 11 Nov 2011 12:20:53 +0000
- List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel>
- List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>
Hello,
I use below configure command to build starpu on a 64 bit system. Trying to the OpenCL version in the NVIDIA driver which I have installed.(
--with-opencl-lib-dir=/usr/lib/ -->hoping this would link the shared library /usr/lib/libOpenCL.so
./configure --with-opencl-include-dir=/usr/include/ --with-opencl-lib-dir=/usr/lib/ CFLAGS="-I/home/deshpandea/lpng155/ -I/home/deshpandea/moviSimStarPU/trunk/examples/basic_examples/ -I/home/deshpandea/zlib-1.2.5/" LDFLAGS="-l:/home/deshpandea/lpng155/libpng15.so" LDFLAGS="-l:/home/deshpandea/bin/zlib/lib/libz.so" LDFLAGS="-l:/usr/lib/libOpenCL.so.1.0.0" LDFLAGS="-m32 -l:/home/deshpandea/moviSimStarPU/trunk/moviSim/moviSimDll.so" LDFLAGS="-l:/usr/lib32/libm.a" LDFLAGS="-l:/usr/lib32/libstdc++.so.6.0.14" LDFLAGS="-l:/usr/local/cuda/lib64/libcudart.so" LDFLAGS="-l:/usr/local/cuda/lib64/libcublas.so" --enable-debug --enable-verbose --disable-cuda
Configure is OK, but make give errors as :
../src/.libs/libstarpu.so: undefined reference to `clCreateCommandQueue'
../src/.libs/libstarpu.so: undefined reference to `clEnqueueReadBuffer'
../src/.libs/libstarpu.so: undefined reference to `clCreateProgramWithSource'
../src/.libs/libstarpu.so: undefined reference to `clEnqueueWriteBuffer'
../src/.libs/libstarpu.so: undefined reference to `clReleaseKernel'
../src/.libs/libstarpu.so: undefined reference to `clGetDeviceIDs'
... Many more undefined references to OpenCL
These are very basic primitives in opencl which even ver 1.0 spec supports, so I suspect there is something else going wrong here in my build like the OpenCL lib. Not getting linked to starpu build itself? (Although I even explicitly gave the library in the LDFLAGS option to configure above as LDFLAGS="-l:/usr/lib/libOpenCL.so.1.0.0")
Can anyone point what I am doing wrong here? What is needed to fix.
thank you.
-AD
- [Starpu-devel] Linker errors in make while trying to build starpu, ASD D, 11/11/2011
Archives gérées par MHonArc 2.6.19+.