Hi,

Le 23/08/2012 14:56, Vincent Danjean a écrit :
>   In my opinion, what is missing in the current spec are (at least):
> - a way to know the size of the structure we got from the ICD
>   An easy way to do so can be to give this size (in bytes or in entries)
>   as a long stored just before the current structure *and* advertize this
>   by declaring an extension in the ICD.

  I was talking to quickly.

> - a way for a program to know if a plate-form implements or not any
>   function. The clGetExtensionFunctionAddressForPlatform might be the
>   solution (but the previous information is required)
>   => I will try to do it correctly for the next ocl-icd release
>   adding some hardcoded information if needed.

From the khronos spec:
The function clGetExtensionFunctionAddressForPlatform returns the
address of the extension function named by funcname for a given
platform.
[...]
clGetExtensionFunctionAddressForPlatform may not be queried for
core (non-extension) functions in OpenCL.
[and AMD ICD give NULL value for core-functions, indeed]

So, this is not a good way to know if a deprecated or new function
is supported or not. And even if ocl-icd can answer correctly, it
would not be portable :-(

> - a way for a program to require a specific (minimum/exact/maximum)
>   OpenCL version. In fact, this can be done by iterating over the
>   available plate-forms.
> 
>   Regards,
>     Vincent
> 
>> Andreas
> 

-- 
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

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to