-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clarify behavior of clLinkProgram when linking fails #1075
Comments
rusticl:
but asynchronous compilation/linking hasn't been implemented yet. |
some of my thoughts:
|
Are you saying In #798 I made it so a non- That would be enough to always fetch logs, but always returning a non- |
no, I didn't. I only meant that in the callback it won't be |
Creating an issue based on discussion in PR #798.
The behavior of
clLinkProgram
does not seem to be precisely described and as a result implementations are behaving differently. We need to determine what we can fix now, and if we cannot fix everything, what we would like to fix in a future spec version.Notes:
clLinkProgram
creates a new program object, unlikeclCompileProgram
andclBuildProgram
, which operate on program objects that have already been created.clLinkProgram
may (or may not!) link asynchronously if a callback function pfn_notify is passed to the function.Some things we need to decide where implementations are behaving differently are:
clLinkProgram
must return aNULL
program object and an error code in errcode_ret? Are these all of the cases where "the linking operation cannot begin", or are there other cases that must return aNULL
program object and an error code also?clLinkProgram
may return both a new non-NULL
program object and an error code in errcode_ret? Or, if an error code is generated, willclLinkProgram
also return aNULL
program object?(If you're curious to see how your implementation behaves, I put my tester here: https://github.com/bashbaug/SimpleOpenCLSamples/tree/link-program-error-behavior/samples/99_linkprogramerror.)
The text was updated successfully, but these errors were encountered: