---
id: pr-cccl-cub-8674
repo: NVIDIA/cccl
pr: 8674
title: '[STF] Fix stream_ctx under CUDA graph capture'
author: caugonnet
date: '2026-05-11'
url: https://github.com/NVIDIA/cccl/pull/8674
source_category: upstream-code
architectures:
- sm100
tags:
- reduction
techniques: []
hardware_features: []
kernel_types:
- reduction
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: c73c3969603862f0c6aa1fcb11d19268af4dd9d0
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- cudax/include/cuda/experimental/__places/stream_pool.cuh
- cudax/include/cuda/experimental/__stf/internal/acquire_release.cuh
- cudax/include/cuda/experimental/__stf/internal/backend_ctx.cuh
- cudax/include/cuda/experimental/__stf/internal/constants.cuh
- cudax/include/cuda/experimental/__stf/stream/stream_ctx.cuh
- cudax/test/stf/CMakeLists.txt
- cudax/test/stf/local_stf/legacy_to_stf_in_capture.cu
artifact_dir: evidence/pull-bundles/cccl-cub/gh-8674
head_ref_oid: df55e9c9fa972055d0b95fe5b926563d7185f051
---
# [STF] Fix stream_ctx under CUDA graph capture

- Repository: `NVIDIA/cccl`
- PR: [8674](https://github.com/NVIDIA/cccl/pull/8674)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `cudax/include/cuda/experimental/__places/stream_pool.cuh`
- `cudax/include/cuda/experimental/__stf/internal/acquire_release.cuh`
- `cudax/include/cuda/experimental/__stf/internal/backend_ctx.cuh`
- `cudax/include/cuda/experimental/__stf/internal/constants.cuh`
- `cudax/include/cuda/experimental/__stf/stream/stream_ctx.cuh`
- `cudax/test/stf/CMakeLists.txt`
- `cudax/test/stf/local_stf/legacy_to_stf_in_capture.cu`

## Evidence Bundle

`evidence/pull-bundles/cccl-cub/gh-8674`
