[ImageJ-devel] OpenCL plugin

Rick Lentz rwlentz at wisc.edu
Wed Jan 12 13:16:46 CST 2011


Hi Pol,

  Regarding your first question it is likely that the linker is missing a
reference to OpenGL.  My instructions were for a prior major release of
Ubuntu as well as a prior minor release of NVidia's CUDA SDK.  I have
updated the setup instructions to reflect the current versions as well as
tested against 64bit Mac and Linux OSs.

  With regard to your specific problem, many of NVidia's examples include
use of OpenGL.  NVidia's documentation indicates that libgl.so is referenced
via static link to appear to be located in /usr/lib/libgl.so (per
http://developer.download.nvidia.com/compute/cuda/3_2_prod/drivers/docs/README_Linux.txtunder
Chapter 5, Listing of Installed Components, 4th bullet).  Chapter 5 of
NVidia's documentation goes on to describe the linking process that happens
when installing the developer drivers.  Perhaps this linking did not happen
when you installed the NVidia development drivers for Linux.  Did you get an
error during installation of the developer drivers reporting something in
this regard?  Chapter 5 concludes on how to check a Linux dynamic library
using the command line tool ldd.  In this case, ldd /usr/lib/libGL.so

Here is the output I get when running ldd /usr/lib/libGL.so

ldd /usr/lib/libGL.so
linux-vdso.so.1 =>  (0x00007ffff33e6000)
 libnvidia-tls.so.260.19.14 => /usr/lib/tls/libnvidia-tls.so.260.19.14
(0x00007fc82b46b000)
libnvidia-glcore.so.260.19.14 => /usr/lib/libnvidia-glcore.so.260.19.14
(0x00007fc82987f000)
 libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fc829549000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fc829337000)
 libc.so.6 => /lib/libc.so.6 (0x00007fc828f93000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fc828d8f000)
 libm.so.6 => /lib/libm.so.6 (0x00007fc828b0c000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fc8288ef000)
 /lib64/ld-linux-x86-64.so.2 (0x00007fc82b974000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fc8286eb000)
 libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fc8284e5000)


If the libGL.so file is present and linked property, you can double check
for inclusion of libGL.so path by ensuring its path in your bash profile
under the variable LD_LIBRARY_PATH.  NVidia asks for the installer to add
these additions in the Linux install documents.  Here is the line in my
.bashrc file that allows the linker to find libGL.so (specifically the
":/usr/lib" portion of this line):

export
LD_LIBRARY_PATH="/usr/lib:/usr/local/cuda/lib64:/usr/local/cuda/lib:/usr/lib32:/usr/local/lib"

I also had issues compiling the most recent version of NVidia's C samples.
 I reflected a work around in the updated web documents (see the bottom of:
http://www.imagejdev.org/setting-host-machine ).

Please let me know if you have any more questions or difficulties with the
ImageJ OpenCL plugin examples.

Sincerely,

Rick Lentz


On Tue, Jan 11, 2011 at 4:20 AM, Pol kennel <pol.kennel at gmail.com> wrote:

> Hello,
>
> I am a PhD student working on image segmentation by texture analysis with
> an application on remote sensing images (Montpellier, France). So i have to
> process very large images (e.g. 15000*8000).
> All methods I developed are formed as plugin under ImageJ API that I really
> like, but not yet applicable on this sort of image.
> Recently, I tough to use finally my graphic card (Nvidia GTS240) which I
> think will help me a lot in my process. So after several search on the web,
> I found this <http://imagejdev.org/plugins/opencl-plugin> (OpenCL plugin
> you wrote) great ! it's precisely what i need.
>
> So I decided to follow your tutorial to setup the environment but met some
> problems... :
>
>    1. When launching makefile in "~/NVIDIA_GPU_Computing_SDK/C/ " and
>    "~/NVIDIA_GPU_Computing_SDK/OpenCL" I had following error "/usr/bin/ld:
>    cannot find -lGL". Plus, I dont have the same demo files, maybe because of
>    version ? (cudatoolkit_3.2.16_linux_64, gpucomputingsdk_3.2.16 and
>    devdriver_3.2_linux_64_260.19.26 on Ubuntu 10.10). On the other side demos I
>    have work perfectly (ooclDCT8x8, oclHistogram,...)
>    2. *Main problem is that the repository you indicate to get the example
>    project (http://www.loci.wisc.edu/svn/decon) doesn't work... *"
>    http://dev.loci.wisc.edu/svn/software/branches/maven/projects/opencl-decon"
>    repository works well. Is is the same ?
>
>
> Thanks a lot if you find time to answer me (and sorry for my english).
>
> And thanks you for work you are doing on ImageJ.
>
> Best regards,
> *
> *
> --
> Pol Kennel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20110112/1099c826/attachment.html>


More information about the ImageJ-devel mailing list