-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Add OSUtil::getCurrentDSODir() function #857
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
[SYCL] Add OSUtil::getCurrentDSODir() function #857
Conversation
The function returns a directory where the current dynamic shared object (libsycl.so or sycl.dll in our case) was found. This can be useful to access files relative to the libsycl.so directory: config files, supplemental libraries, etc. Signed-off-by: Andrew Savonichev <[email protected]>
c9eb854
to
27700f6
Compare
Signed-off-by: Andrew Savonichev <[email protected]>
Signed-off-by: Andrew Savonichev <[email protected]>
Signed-off-by: Andrew Savonichev <[email protected]>
@AlexeySachkov Please, "Resolve conversation" if your comments are addressed. |
sycl/unittests/CMakeLists.txt
Outdated
if (CMAKE_BUILD_TYPE MATCHES "Debug") | ||
set(sycl_lib "sycld") | ||
else() | ||
set(sycl_lib "sycl") | ||
endif() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of this change? Why can't we always use "sycl"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debug tests should link with debug SYCL runtime on Windows, because Microsoft C and C++ runtime are have different ABI in for debug and release.
I made this change because SYCL unittests failed to compile on Windows in Debug build. I can make a separate PR with this change.
Anyway, I forgot to guard this change with if (MSVC)
, so please don't merge this PR yet.
Signed-off-by: Andrew Savonichev <[email protected]>
b92dcfd
to
af853f2
Compare
The function returns a directory where the current dynamic shared
object (libsycl.so or sycl.dll in our case) was found.
This can be useful to access files relative to the libsycl.so
directory: config files, supplemental libraries, etc.
Signed-off-by: Andrew Savonichev [email protected]