Repository navigation
Fix dereferencing nullptr in thrust::device_reference - #4226
Merged
Merged
Conversation
bernhardmgruber
force-pushed
the
fix_null_ref
branch
3 times, most recently
from
March 21, 2025 06:16
6db36e4 to
b437fcf
Compare
Contributor
Author
|
Already found one system which cannot be default constructed: |
thrust::device_reference
Contributor
Author
|
I think #4227 gets us a step closer to avoiding the need to create a system at all. |
Contributor
🟨 CI finished in 1h 06m: Pass: 9%/97 | Total: 1d 13h | Avg: 23m 12s | Max: 1h 05m | Hits: 48%/3860
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| +/- | Thrust |
| CUDA Experimental | |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| +/- | CUB |
| +/- | Thrust |
| CUDA Experimental | |
| +/- | stdpar |
| +/- | python |
| +/- | CCCL C Parallel Library |
| +/- | Catch2Helper |
🏃 Runner counts (total jobs: 97)
| # | Runner |
|---|---|
| 68 | linux-amd64-cpu16 |
| 9 | windows-amd64-cpu16 |
| 6 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 3 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
bernhardmgruber
force-pushed
the
fix_null_ref
branch
from
March 22, 2025 04:56
b437fcf to
0f1423b
Compare
Contributor
🟨 CI finished in 1h 22m: Pass: 9%/97 | Total: 1d 21h | Avg: 27m 57s | Max: 1h 20m | Hits: 45%/3860
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| +/- | Thrust |
| CUDA Experimental | |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| +/- | CUB |
| +/- | Thrust |
| CUDA Experimental | |
| +/- | stdpar |
| +/- | python |
| +/- | CCCL C Parallel Library |
| +/- | Catch2Helper |
🏃 Runner counts (total jobs: 97)
| # | Runner |
|---|---|
| 68 | linux-amd64-cpu16 |
| 9 | windows-amd64-cpu16 |
| 6 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 3 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
Contributor
🟨 CI finished in 1h 57m: Pass: 9%/97 | Total: 1d 21h | Avg: 28m 25s | Max: 1h 25m | Hits: 38%/3860
|
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| CUB | |
| +/- | Thrust |
| CUDA Experimental | |
| stdpar | |
| python | |
| CCCL C Parallel Library | |
| Catch2Helper |
Modifications in project or dependencies?
| Project | |
|---|---|
| CCCL Infrastructure | |
| libcu++ | |
| +/- | CUB |
| +/- | Thrust |
| CUDA Experimental | |
| +/- | stdpar |
| +/- | python |
| +/- | CCCL C Parallel Library |
| +/- | Catch2Helper |
🏃 Runner counts (total jobs: 97)
| # | Runner |
|---|---|
| 68 | linux-amd64-cpu16 |
| 9 | windows-amd64-cpu16 |
| 6 | linux-arm64-cpu16 |
| 6 | linux-amd64-gpu-rtxa6000-latest-1 |
| 3 | linux-amd64-gpu-h100-latest-1 |
| 3 | linux-amd64-gpu-rtx4090-latest-1 |
| 2 | linux-amd64-gpu-rtx2080-latest-1 |
bernhardmgruber
force-pushed
the
fix_null_ref
branch
2 times, most recently
from
September 22, 2025 08:15
5c3113c to
dcb47c6
Compare
bernhardmgruber
marked this pull request as draft
September 22, 2025 08:16
Contributor
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
bernhardmgruber
force-pushed
the
fix_null_ref
branch
2 times, most recently
from
September 22, 2025 10:02
63b6069 to
54bc86d
Compare
This comment has been minimized.
This comment has been minimized.
bernhardmgruber
force-pushed
the
fix_null_ref
branch
2 times, most recently
from
September 22, 2025 12:53
bfac281 to
583a838
Compare
…t to the sequantial tag
Dispatch using system tag instead, which is default constructible.
bernhardmgruber
force-pushed
the
fix_null_ref
branch
from
September 23, 2025 10:41
bdac34a to
ebd5069
Compare
Contributor
🥳 CI Workflow Results🟩 Finished in 3h 52m: Pass: 100%/159 | Total: 6d 16h | Max: 3h 51m | Hits: 40%/186470See results here. |
This was referenced Sep 23, 2025
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this pull request
Sep 24, 2025
* Improve select_system diagnostics * Add tests for minimum_system and allow any execution policy to convert to the sequantial tag * Dispatch using system tag instead, which is default constructible. (cherry-picked from 9fbba01)
pciolkosz
pushed a commit
to pciolkosz/cccl
that referenced
this pull request
Sep 24, 2025
* Improve select_system diagnostics * Add tests for minimum_system and allow any execution policy to convert to the sequantial tag * Dispatch using system tag instead, which is default constructible.
bernhardmgruber
added a commit
that referenced
this pull request
Sep 30, 2025
…ce (#4226) (#6002) * Fix dereferencing nullptr in `thrust::device_reference` (#4226) * Improve select_system diagnostics * Add tests for minimum_system and allow any execution policy to convert to the sequantial tag * Dispatch using system tag instead, which is default constructible. (cherry-picked from 9fbba01) * Manual fixes extracted from #5821
Naraenda
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Oct 26, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
Naraenda
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Oct 29, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
Naraenda
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Oct 29, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
Naraenda
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Oct 30, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
Beanavil
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Oct 30, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
Beanavil
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Nov 9, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
amd-jmahovsky
added a commit
to ROCm/rocm-libraries
that referenced
this pull request
Nov 10, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
Naraenda
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Nov 12, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
Naraenda
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Nov 12, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
Naraenda
pushed a commit
to ROCm/rocm-libraries
that referenced
this pull request
Nov 12, 2026
… `thrust::device_reference` (NVIDIA/cccl#4226) Upstream: NVIDIA/cccl@9fbba01 - N/A: already backported on the base branch (`reference.h`, `seq.h`, `minimum_system.h`, `select_system.h`, `sequential/execution_policy.h` merged with no change). - HIP counterpart: none (generic headers). - testing/ counterpart: already present as `testing/minimum_system.cu` (`MinimumSystem`); upstream Catch2 file not added. - test/ counterpart: already present as `test/test_minimum_system.cpp` (`MinimumSystemTests.MinimumSystem`). - Not compiled, tests not run (per human). Co-Authored-By: Claude <[email protected]>
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.
Instead of using a nullptr to a system, we just construct a system tag, which is always default constructible.
Before:
After:
Fixes: #1645.