-
Notifications
You must be signed in to change notification settings - Fork 233
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
Missing documentation on how to build and run an OpenCL example program #32
Comments
We currently do not support direct linking to igdrcl, that's why those functions are not exported. We will add proper clarifications to our documents. Supported model is to link with ICD library. In general we do not want to export those functions from the library as we prefer to be used via ICD, as this is the correct layer to handle such interaction. Are there any strong reasons to use Runtime directly ? |
Thank you for the explanation! There's no particular reason. For a newbie like me it's just unusual that a lib is supposed to be used through an additional layer of indirection. Probably the deb package could have a binary dependency on the ICD library declared to give users a hint. |
With commit b397499 our Readme file is updated, |
We had an internal discussion about adding binary dependency on ICD for deb package and we fell that it's not a correct thing. This is due to the fact that we don't require ICD to install the driver and we do not want to warn/fail at the installation time about its absence. We feel that it is applications responsibility to link properly and check for its dependencies. At this moment we think that README clarifies this problem. |
I managed to successfully build the runtime as a deb package and after its installation
clinfo
reports platforms and devices correctly. But now I'm struggling to compile an example program like [1]. It builds and works perfectly when linked to Beignet.With the current runtime I get
readelf
shows that the missing functions exist in the lib, but not exported for some reason. The only exported functions seem to be onlyclIcdGetPlatformIDsKHR
,clGetPlatformInfo
andclGetExtensionFunctionAddress
. How the lib is supposed to be used then?Could you please provide a short intro on how to use the runtime?
[1] https://github.com/rojkov/opencl-fft-example
The text was updated successfully, but these errors were encountered: