On Apr 16, 2013, at 1:22 AM, Raistmer the Sorcerer wrote: > >NOTE: The new boinc_get_opencl_ids() API is 100% backward compatible with > >older versions of the BOINC client. From the source file's comments: > > It's not. > When I call it under older BOINC I get no valid CL context so ap will failt > to execute if it will not create own CL context.
Nor will getting the value from the --device command-line argument. Perhaps I don't understand what you are saying here. The boinc_get_opencl_ids() API returns a cl_device_id and cl_platform_id from which you can easily get the device context. What can you do with the --device command-line argument that you cannot do using the boinc_get_opencl_ids() API? The only place you might have a problem is if there are CAL GPUs which are not OpenCL capable. That will be fixed for most cases in a near future release of BOINC, but there is _nothing_ that can be done about it for older versions of BOINC. If you try to guess which GPU to use in this situation, you run the risk of trying to use the same GPU to which BOINC has assigned a different task. Cheers, --Charlie _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
