Candidate Measurement Fix, main branch (2026.05.13.)#1326
Merged
stephenswat merged 3 commits intoMay 13, 2026
Conversation
In some compiler combinations combining explicit __host__ and __device__ labels with "= default" doesn't work.
stephenswat
approved these changes
May 13, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



I noticed this one in #1259. Once again this is an issue that CUDA only complains about when paired with Clang as the host compiler. Namely that:
I've run into similar things in vecmem a couple of times in the past. That one cannot use
__device__and__host__declarations for auto-generated functions. Luckily since the function is anyway declared to beconstexpr,nvccuses it happily even without the__device__declaration.