Le 12/09/2012 10:37, Kalle Raiskila a écrit :
> 10.09.2012 19:37, ext Vincent Danjean skrev:
> 
>> This is very fragile. ICD relies on a precise order of the function
>> pointers. Using the structure provided by ocl-icd, you are reasonably
>> sure that you put the good functions at the good place (the compiler
>> checks the type of function pointers)
> 
> Yes - better safe than sorry. ocl-icd.h is used from r378 onvards, if found 
> on the system.
> 
> Which brings to mind - why does Debian Wheezy get a custom ocl-icd
> 1.3, and not just a 1.4? Is it possible to bump a a minor revision of
> this package to 1.3.1 or something? Not all users/developers are
> running Wheezy :)

Debian wheezy is in freeze. It is not possible to upload new upstream
versions anymore unless there is very strong reasons.
Between 1.3 and 1.4, some code of ocl-icd have been refactored. So,
the upstream 1.4 would have been refused by the Debian release team.
However, I asked and obtained to upload a patched version of ocl-icd
1.3 where I backported 1.4 fixes.
This is why the Debian Wheezy package, whereas stamped as a 1.3-X version,
can be used to develop with OpenCL.

> And one more thing I noticed wile poking in configure.ac: what is the
> intended difference between the pkg-config packages ocl-icd.pc and
> OpenCL.pc? Do/should the other ICD loaders supply a OpenCL.pc?

ocl-icd.pc should be used to get development files (mainly headers)
for ICD internals (ie, it should be used when creating ICD, it is a
easy way to get the internal dispatch function)
OpenCL.pc can/should be used by OpenCL programs to compile and link
against OpenCL headers/library (ie ICD loader). I would be very
pleased if other ICD loaders also provides an pc file. This is
not the case for now and I did not pushed for that yet. In my
opinion, most other ICD loader (but amd ones) should add versionned
symbols (Intel, NVidia) and use a good SONAME (Intel) before
providing a pc file.

  Regards,
    Vincent

> kalle
> 


-- 
Vincent Danjean          Adresse: Laboratoire d'Informatique de Grenoble
Téléphone:  +33 4 76 61 20 11            ENSIMAG - antenne de Montbonnot
Fax:        +33 4 76 61 20 99            ZIRST 51, avenue Jean Kuntzmann
Email: [email protected]           38330 Montbonnot Saint Martin

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to