Login  Register

Re: Hardcoded float not working?

Posted by Xerxes Rånby on Dec 20, 2013; 5:11pm
URL: https://forum.jogamp.org/Hardcoded-float-not-working-tp4030974p4031008.html

JOCL only look for libopencl inside the system library paths, there is no code to specifically look inside the $AMDAPPSDKROOT/lib path. A correctly configured system should have added $AMDAPPSDKROOT/lib to the LD_LIBRARY_PATH that is used by all applications on the system.

This is the list of system librarys JOCL use to search for an OpenCL implementation:
http://jogamp.org/git/?p=jocl.git;a=blob;f=src/com/jogamp/opencl/llb/impl/CLDynamicLibraryBundleInfo.java;h=36bc26f9bf40e754176757461e625be36034381d;hb=51bb8b2259e8eae9f62ec7202e8b7eb934a44c85#l96

Do
g++ -o hello_world -I$AMDAPPSDKROOT/include  main.cpp -lOpenCL
work? (removed -L$AMDAPPSDKROOT/lib )

It may help to pass -Djogamp.debug.NativeLibrary.Lookup at runtime to let gluegen-rt tell which native library it found the OpenCL implementation inside on your system.