PDA

View Full Version : Asynchronous build program



matrem
04-13-2010, 10:07 AM
With last nVidia implementation clBuildProgram called with a callback function doesn't return immediately.

Reading the specification :

If pfn_notify is not NULL, clBuildProgram does not need to wait for the build to complete and can return immediately, I guess this asynchronous call is implementation dependent... so I'll have to call clBuildProgram in a new thread, if want to always have an asynchronous behavior.

Is there a way to know if a context's compiler will build program asynchronously?

affie
04-13-2010, 04:01 PM
There currently is no way of determining whether the compiler will build program asynchronously in the spec.