oneapi-src / level-zero

oneAPI Level Zero Specification Headers and Loader
https://spec.oneapi.com/versions/latest/elements/l0/source/index.html
MIT License
211 stars 90 forks source link

Conflict with DLLs already in system32 #138

Open otabuzzman opened 5 months ago

otabuzzman commented 5 months ago

The Level Zero API uses LOAD_LIBRARY_SEARCH_SYSTEM32 and thus loads dependent DLLs from c:\windows\system32. This yields errors on systems shipped with Level Zero DLLs in system32. Building an app with ze_loader.dll from the repo (e.g. zello_world.exe) will load dependent DLLs (e.g. ze_validation_layer.dll) from system32 and not from the repo. If this behavior is due to security considerations it’s probably worth a note in the repo. Otherwise one of the less restrictive search options for DLLs might be appropriate.