On Sun, 19 May 2013 11:27:22 +0300 Pekka Jääskeläinen <[email protected]> wrote:
> On 05/18/2013 11:36 PM, O. Hartmann wrote: > > There is an opensource project called "ocl-icd" which I'm aware of, > > but it doesn't "configure" on FreeBSD (I guess too many Linuxism) > > or I'm to dull to get it right. The autotools fail with some weird > > missing macro definitions. > > If ocl-icd doesn't work for you, you could try the Khronos ICD loader > with a patch from pocl applied. Instructions here: KHRONOS ICD works now fine with POCL 0.8 on FreeBSD 10.0-CURRENT. I give OCL-ICD also a try to make it a port. I use the patch you provided for KHRONOS ICD to patch the FreeBSD port, hope this is all right so. > > http://pocl.sourceforge.net/docs/html/development.html#khronos-icd-loader > > For your problem: When looking at the code there's only one spot > where clGetPlatformIDs() can return an error: > > POname(clGetPlatformIDs)(cl_uint num_entries, > cl_platform_id * platforms, > cl_uint * num_platforms) > CL_API_SUFFIX__VERSION_1_0 { > int const num = 1; > int i; > > if (platforms != NULL) { > if (num_entries < num) > return CL_INVALID_VALUE; > > for (i=0; i<num; ++i) > platforms[i] = &_platforms[i]; > } > > if (num_platforms != NULL) > *num_platforms = num; > > return CL_SUCCESS; > } > > That is, if the num_entries is less than 1 and platforms != NULL. > > In your case platforms is NULL so it should not be possible > to return an error. Perhaps you could step through the program > with gdb and see where it ends up. Does it even get to the pocl > implementation of the function? > > BR,
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________ pocl-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pocl-devel
