Login  Register

Re: Hardcoded float not working?

Posted by Wade Walker on Dec 23, 2013; 2:49pm
URL: https://forum.jogamp.org/Hardcoded-float-not-working-tp4030974p4031040.html

Hmm, OK, there are more things to try :) It looks like there may be two libOpenCL.so on your system, one in /usr/lib/fglrx (the good one) and one in /usr/lib (presumably old and broken). To confirm, maybe do a "locate libOpenCL.so", just to make sure there aren't more lying around :)

One thing to try is setting the env var LD_DEBUG=all before running the JOCL program. This should dump information straight from the Linux loader to tell us which lib is getting loaded (the Djogamp.debug.NativeLibrary* didn't tell us the path to the lib, so it must be from inside System.loadLibrary()). Maybe this shows us that JOCL is loading the old libOpenCL.so.

Another thing is to try moving the libOpenCL.so in /usr/lib off the search path, to see if JOCL will load the one in /usr/lib/fglrx or just fail. Or alternately, you could make a link in /usr/lib to the one in /usr/lib/fglrx. The point is to make sure JOCL is seeing /usr/lib/fglrx/libOpenCL.so, since we know that one is correct (since it works for your C++ program).