fix: build with GCC 15 / CUDA >= 13#83
Merged
RaulPPelaez merged 3 commits intoJul 10, 2026
Merged
Conversation
libstdc++ 15 makes the tag type of std::span's iterator
(std::span<T>::__iter_tag) a private member. When a span iterator is
passed to a thrust/CUB device algorithm (e.g. thrust::transform in
MobilityInterface::sqrtMdotW), nvcc emits host stub code that names that
private type, which GCC 15 rejects ("__iter_tag is private within this
context"). This breaks builds with CUDA >= 13 against GCC 15.
Give device_span raw-pointer begin()/end() so the private tag is never
instantiated. device_span remains a valid contiguous range and every
solver funnels through it, so this fixes all of them at once.
Contributor
|
Thanks! |
This was referenced Jul 10, 2026
Closed
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.
libstdc++ 15 makes the tag type of std::span's iterator (std::span::__iter_tag) a private member.
When a span iterator is passed to a
thrust/CUBdevice algorithm (e.g.thrust::transforminMobilityInterface::sqrtMdotW),nvccemits host stub code that names that private type, which GCC 15 rejects (__iter_tag is private within this context).This breaks builds with CUDA >= 13 against GCC 15.
Give
device_spanraw-pointer begin()/end() so the private tag is never instantiated.device_spanremains a valid contiguous range and every solver funnels through it, so this fixes all of them at once.