Skip to content

[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

Merged
merged 5 commits into from
Nov 25, 2019

Conversation

asavonic
Copy link
Contributor

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]

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]>
@asavonic asavonic force-pushed the private/asavonic/osutils-dso-path branch from c9eb854 to 27700f6 Compare November 21, 2019 09:50
Signed-off-by: Andrew Savonichev <[email protected]>
Andrew Savonichev added 2 commits November 21, 2019 15:37
Signed-off-by: Andrew Savonichev <[email protected]>
@romanovvlad
Copy link
Contributor

@AlexeySachkov Please, "Resolve conversation" if your comments are addressed.

Comment on lines 12 to 17
if (CMAKE_BUILD_TYPE MATCHES "Debug")
set(sycl_lib "sycld")
else()
set(sycl_lib "sycl")
endif()

Copy link
Contributor

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"?

Copy link
Contributor Author

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]>
@asavonic asavonic force-pushed the private/asavonic/osutils-dso-path branch from b92dcfd to af853f2 Compare November 25, 2019 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants