On Fri, 30 Dec 2011 15:29:14 -0800, Lewis Anderson <[email protected]> wrote: > Okay. So I took a closer look at the build process. I am linking against > /usr/lib/nvidia-current/libOpenCL.so.1.0.0, which I have confirmed exists. > The problem is that it doesnt seem to get linked, because I get this > warning when I do "make": > > warning: no library file corresponding to > '/usr/lib/nvidia-current/libOpenCL.so.1.0.0' found (skipping) > > And then the final g++ command (in the make process) doesnt contain > libOpenCL.so, meaning it doesnt get linked which leads to the undefined > symbol failure. > > > So, the question now, is why does make fail to find libOpenCL.so? Any > ideas?
You are not allowed to specify the "lib" and ".so.1.0.0" parts in configuring pyopencl. I.e. when you link using "-lOpenCL", the linker will look for "libOpenCL.so" (no version tag numbers), which it expects to be a symlink to the desired version. Also, the path goes in the separate "lib dir" entry. Also make sure to use Nvidia headers when linking against an Nvidia libOpenCL. HTH, Andreas PS: Please make sure to keep the list cc'd for archival. Thanks.
pgpGkpPzQUltR.pgp
Description: PGP signature
_______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
