-
Notifications
You must be signed in to change notification settings - Fork 123
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
loader windows platform discovery implementation #128
Comments
As to the registering of adapters and the ideas provided by @pbalcer, one of the solutions is to have a single conf file where adapters' names and their absolute paths would be stored. Each adapter upon its installation would have to append this conf file with just a single line. Adapters search in UR would look the same on linux and Windows. For linux, it seems reasonable to have such a file stored in There is one disadvantage of this solution, though. What should adapters do if UR is not installed? Introducing a requirement for adapters to be installed after UR installation would be very inconvenient, I think this have to be handled in some way. Should adapters' installers create such a file? In such a case, there should be a template file stored somewhere in UR so that authors of adapters would know how this conf file should look like. This problem can be resolved by using some registry key of type Any thoughts on that? I think the second solution with reg keys and |
As a data point, the OpenCL-ICD-Loader defines a similar approach here of using a config file on Linux and registry keys on Windows. |
We've discussed this at the workgroup, and the decision is to keep things simple for now. The hard coded list of adapters will stay and be used on both platforms. In addition, we will:
|
issue
The loader needs to be able to discover available adapter implementations, given a hardcoded list of names. On Linux, this is simple since we can rely on dlopen's builtin support for dynamic symbol discovery.
For windows, this gets complicated. The level-zero loader (https://github.com/oneapi-src/level-zero/blob/master/source/loader/windows/driver_discovery_win.cpp) looks for registry keys from the display adapter installation to discover the drivers. This approach might not necessarily work for UR.
tasks
UR_ENABLE_ALT_DRIVERS
env variable.The text was updated successfully, but these errors were encountered: