On 05/12/12 02:37, ext André Puel wrote: > I have a program that works fine on NVIDIAs OpenCL implementation while on > POCL I am getting some LLVM errors. > > Is there any guidelines on how to debug POCL? It would be nice if I could > run gdb on it or something like that...
Debugging the pocl library itself under gdb works just fine. If you use ICD, then there will be a level of confusion when you step through the ICD loader. I suggest you link your program directly wit pocl (i.e. build pocl with --disable-icd). Or use an open-source ICD loader, preferably built with debugging symbols. Note that with the ICD enabled, the OpenCL API functions are implemented in pocl prefixed with 'PO', e.g. 'POclGetPlatformIDs'. Also, pocl built with '--enable-debug' is nicer to step in a debugger, as it is not optimized. kalle -- But beware the debugger. Dark side of the source it is. If once you start down the dark path, forever will it dominate your destiny. Consume you it will. ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
