unified-runtime icon indicating copy to clipboard operation
unified-runtime copied to clipboard

[CUDA] Improve the loading process of the CUPTI library when tracing

Open pasaulais opened this issue 2 years ago • 1 comments

https://github.com/oneapi-src/unified-runtime/pull/1070 uses a hard-coded path for the CUPTI library. This might cause issues when using CUDA adapter builds on a different system where the library is located in a different directory. This process could be improved in several ways, e.g. letting the user override the path through an environment variable, checking well-known paths, using the RPATH, etc.

pasaulais avatar Dec 14 '23 13:12 pasaulais

According to this comment, on Windows we should ensure that absolute paths are used, to avoid any security issue with loading libraries from a user-writable path: https://github.com/oneapi-src/unified-runtime/pull/1070#issuecomment-1855917860

pasaulais avatar Dec 18 '23 10:12 pasaulais