Yes, and if you want to develop pocl, "make check" with ICD compiled pocl does not work without one of these ICD loader options listed here: http://portablecl.org/docs/html/development.html#test-suite
On 02/22/2014 09:54 AM, Vincent Danjean wrote: > On 22/02/2014 00:53, Anti_Tenzor wrote: >> This is continuations of the previous mail... >> >> I observed that "make check" links examples with "-lOpenCL". So in fact it >> links them to default AMD implementation. I have to link it to libOpenCL.so >> that pocl SHOULD produce after build. >> But I can not find it in tree. Where should I look for this lib? > > OpenCL implementation can be provided as a libOpenCL.so library. > However, since OpenCL 1.1, this is not the recommanded way. > Instead, libOpenCL.so should be a generic OpenCL call dispatcher > against the various installed OpenCL implementation. These > implementation are provided as ICD. > About pocl, in its default compilation mode, it only provides > an ICD (so an ICD Loaded, aka a generic libOpenCL.so library > must be used in addition). If you really want, you can use > configure switches to compile pocl in standalone mode (ie the > OpenCL implementation in put directly in a libOpenCL.so > library that can then only provide pocl implementation). > > If you start the classical path (compiling pocl as an ICD), > as already said, you need an ICD Loader (ie, a generic > libOpenCL.so library). You can use the one provided by Intel, > AMD or NVidia (in the latter case, OpenCL 1.2 calls are not > supported for now, even if the ICD support them). > But you can also use the free ocl-icd implementation. This > independent project (I'm one of the author of it) aims at > providing a free implementation of an ICD Loader. As this > project already exists, there is no need to copy/rewrite it > in a project such as pocl. You just need to use it (and report > bugs against it if something does not work, especially if this > work with non-free implementation (AMD, Intel, ...)). > > Regards, > Vincent > > [ocl-icd]: https://forge.imag.fr/projects/ocl-icd/ > >> Here is my ./configure parameters: >> >> $ ./configure --prefix=/usr --enable-direct-linkage --enable-testsuites=all >> CPPFLAGS="-I/opt/AMDAPP/include" >> >> BR, >> Oleg. >> >> >> >> ------------------------------------------------------------------------------ >> Managing the Performance of Cloud-Based Applications >> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. >> Read the Whitepaper. >> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk >> >> >> >> _______________________________________________ >> pocl-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/pocl-devel >> > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk > _______________________________________________ > pocl-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pocl-devel > -- --PJ ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
