On Samstag, 2. März 2019 18:57:43 CET Nakarin Khankham wrote:

> By dynamically access the functions, you mean use dlopen and dlsym function?

> (in wine case, wine_dlopen and wine_dlsym?)

>

> something like this?

 

That won't help - once it's compiled with 1.1+ OpenCL support, how is it supposed to react when the host only has OpenCL 1.0 support?

You need to check the OpenCL support (of the selected device) dynamically. You can have multiple OpenCL devices with different versions, too.

 

Regards,

Fabian Maurer