8000 Error out for all builds with RDC and `BUILD_SHARED_LIBS` by JBludau · Pull Request #8196 · kokkos/kokkos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Error out for all builds with RDC and BUILD_SHARED_LIBS #8196

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 2 commits into from
Jun 19, 2025

Conversation

JBludau
Copy link
Contributor
@JBludau JBludau commented Jun 18, 2025

When using relocatable device code, the object that this code gets linked into has to be a static library. nvcc sneaks it into its example section via "Note that only static libraries are supported by the device linker." clang is even less vague and I had to dig through the issue trying to follow their discussion examples to find that their support for that in shared lib is still a long way to go.

FWICT this is not working in nvcc or clang reliably. Thus I propose to error out in all RDC builds that also require BUILD_SHARED_LIBS

@tpadioleau this will need to be adapted in spack as I saw you did for cuda+rdc

For reference: if users want to build shared libs using device code in the end, they can link the part of their lib that uses device code/Kokkos as a static lib and integrate that into a shared lib later

Signed-off-by: Jakob Bludau <jakob.bludau@tum.de>
@masterleinad masterleinad added the SNL-CI-APPROVAL Required for non-SNL contributions to run on SNL CI label Jun 18, 2025
@dalg24 dalg24 merged commit f1b4b12 into kokkos:develop Jun 19, 2025
41 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SNL-CI-APPROVAL Required for non-SNL contributions to run on SNL CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0