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

Clarify Thrust/CUB ABI guarantees #1269

Merged
merged 3 commits into from
Jan 16, 2024
Merged

Clarify Thrust/CUB ABI guarantees #1269

merged 3 commits into from
Jan 16, 2024

Conversation

jrhemstad
Copy link
Collaborator

Description

Adds thrust:: to the docs about the archs included as an inline namespace, and further added additional detail about ABI incompatibility between host/device TUs.

README.md Outdated
- The ABI of `cub::` symbols includes the CUDA architectures used for compilation. Therefore, a single `cub::` symbol may have a different ABI if compiled with different architectures.
- The ABI of `thrust::` and `cub::` symbols includes the CUDA architectures used for compilation. Therefore, a single `cub::` symbol may have a different ABI if:
- compiled with different architectures
- compiled with nvcc vs host compiler only
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be something like compiled from a CUDA source file compared to a C++ file. By a literal reading of this line nvcc -x c++ would infer same ABI as nvcc -x cu which isn't correct. It also fails to distinguish how to reason when clang++ is both the C++ and CUDA compiler ( no nvcc at all ).

README.md Outdated Show resolved Hide resolved
@jrhemstad jrhemstad merged commit 6c729ed into main Jan 16, 2024
539 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants