-
Notifications
You must be signed in to change notification settings - Fork 794
[SYCL] Bring back RTC support for AMD and Nvidia GPU targets #19342
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
base: sycl
Are you sure you want to change the base?
Conversation
…ntel#18918)" (intel#19304)" This reverts commit 29e7b63.
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
Signed-off-by: Julian Oppermann <[email protected]>
SmallVector<ToolChain::BitCodeLibraryInfo, 12> CommonDeviceLibs = | ||
OffloadTC->getDeviceLibs(CPUArgList, Action::OffloadKind::OFK_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.
Note to reviewers: This (and the setup of the clang::Driver
instance above) is the new bit in this PR. We cannot use CudaToolChain
and ROCMToolChain
directly because they are marked as hidden symbols.
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.
Apart from me being a pedantic nuisance, LGTM!
Signed-off-by: Julian Oppermann <[email protected]>
This PR brings back #18918 and #19302, and fixes the issue with shared library builds.
The problem was that we accessed hidden symbols defined in headers from the
clang/lib
directory to obtain paths to the vendor-specific device library files. We now use theToolChain::getDeviceLibs
API, and supply a minimal implementation for theCudaToolchain
.