Skip to content
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

Fix link errors during repeated builds when CUDA RDC is enabled #948

Closed
wants to merge 3 commits into from

Conversation

pcanal
Copy link
Contributor

@pcanal pcanal commented Sep 20, 2023

Add explicit link dependency from ${target}_final to ${target_static}/

This allows the use of CMAKE_LINK_DEPENDS_NO_SHARED=OFF and still get a new linking of the final library (i.e. executing nvlink) if any of the RDC cuda file have changed (and thus the internal CUDA RDC infrastructure symbol have change ; they are seeded with a 'random' number which change at each compilation).

pcanal added 3 commits July 13, 2023 19:20
This allows the use of `CMAKE_LINK_DEPENDS_NO_SHARED=OFF` and still get
a new linking of the final library (i.e. executing `nvlink`) if any of
the RDC cuda file have changed (and thus the internal CUDA RDC infrastructure
symbol have change ; they are seeded with a 'random' number which change at
each compilation).
@pcanal pcanal closed this Sep 20, 2023
@sethrj sethrj changed the title Add explicit link dependency from ${target}_final to ${target_static} Fix link errors during repeated builds when CUDA RDC is enabled Sep 21, 2023
@sethrj
Copy link
Member

sethrj commented Sep 21, 2023

@pcanal Will this fix #856 (comment) ? Also was this intentionally closed?

@pcanal
Copy link
Contributor Author

pcanal commented Sep 21, 2023

Yes, it was intentionally closed as it was inadvertently opened with the wrong commits (The real PR is #949).

But I need to double check the stray commits are still somewhere and check on #856 (comment) which might have been overlooked over the summer breaks.

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.

2 participants