---
id: pr-cccl-cub-1973
repo: NVIDIA/cccl
pr: 1973
title: Experimental Python cooperative algorithms
author: gevtushenko
date: '2024-07-11'
url: https://github.com/NVIDIA/cccl/pull/1973
source_category: upstream-code
architectures:
- sm100
tags:
- memory_primitives
- segmented scan
techniques:
- warp-specialization
hardware_features: []
kernel_types:
- memory
- reduction
- scan
- sort
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 6b95f43ac913dfbc28041f55162c9d43e5b07316
inclusion_reason: 'Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.'
changed_paths:
- .gitignore
- ci/inspect_changes.sh
- ci/matrix.yaml
- ci/pretty_printing.sh
- ci/test_pycuda.sh
- cub/cub/block/block_radix_sort.cuh
- docs/pycuda/index.rst
- docs/repo.toml
- python/cuda/.gitignore
- python/cuda/MANIFEST.in
- python/cuda/README.md
- python/cuda/cuda/cooperative/__init__.py
- python/cuda/cuda/cooperative/experimental/__init__.py
- python/cuda/cuda/cooperative/experimental/_caching.py
- python/cuda/cuda/cooperative/experimental/_common.py
- python/cuda/cuda/cooperative/experimental/_nvrtc.py
- python/cuda/cuda/cooperative/experimental/block/_block_merge_sort.py
- python/cuda/cuda/cooperative/experimental/block/_block_radix_sort.py
- python/cuda/cuda/cooperative/experimental/block/_block_reduce.py
- python/cuda/cuda/cooperative/experimental/block/_block_scan.py
- python/cuda/cuda/cooperative/experimental/warp/_warp_merge_sort.py
- python/cuda/cuda/cooperative/experimental/warp/_warp_reduce.py
- python/cuda/cuda/cooperative/experimental/warp/_warp_scan.py
- python/cuda/tests/helpers.py
- python/cuda/tests/test_block_merge_sort.py
- python/cuda/tests/test_block_merge_sort_api.py
- python/cuda/tests/test_block_radix_sort.py
- python/cuda/cuda/cooperative/experimental/_types.py
- python/cuda/cuda/cooperative/experimental/block/__init__.py
- python/cuda/cuda/cooperative/experimental/warp/__init__.py
- python/cuda/setup.py
- python/cuda/pyproject.toml
artifact_dir: evidence/pull-bundles/cccl-cub/gh-1973
head_ref_oid: bb2787ff53908b141db53f7338ad9db484e5a51e
---
# Experimental Python cooperative algorithms

- Repository: `NVIDIA/cccl`
- PR: [1973](https://github.com/NVIDIA/cccl/pull/1973)
- Decision: `Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.`
- Reason: Transfer primitive policy carefully: coalescing, shared-memory staging, partial tiles, and determinism are part of the contract.

## Changed Paths

- `.gitignore`
- `ci/inspect_changes.sh`
- `ci/matrix.yaml`
- `ci/pretty_printing.sh`
- `ci/test_pycuda.sh`
- `cub/cub/block/block_radix_sort.cuh`
- `docs/pycuda/index.rst`
- `docs/repo.toml`
- `python/cuda/.gitignore`
- `python/cuda/MANIFEST.in`
- `python/cuda/README.md`
- `python/cuda/cuda/cooperative/__init__.py`
- `python/cuda/cuda/cooperative/experimental/__init__.py`
- `python/cuda/cuda/cooperative/experimental/_caching.py`
- `python/cuda/cuda/cooperative/experimental/_common.py`
- `python/cuda/cuda/cooperative/experimental/_nvrtc.py`
- `python/cuda/cuda/cooperative/experimental/block/_block_merge_sort.py`
- `python/cuda/cuda/cooperative/experimental/block/_block_radix_sort.py`
- `python/cuda/cuda/cooperative/experimental/block/_block_reduce.py`
- `python/cuda/cuda/cooperative/experimental/block/_block_scan.py`
- `python/cuda/cuda/cooperative/experimental/warp/_warp_merge_sort.py`
- `python/cuda/cuda/cooperative/experimental/warp/_warp_reduce.py`
- `python/cuda/cuda/cooperative/experimental/warp/_warp_scan.py`
- `python/cuda/tests/helpers.py`
- `python/cuda/tests/test_block_merge_sort.py`
- `python/cuda/tests/test_block_merge_sort_api.py`
- `python/cuda/tests/test_block_radix_sort.py`
- `python/cuda/cuda/cooperative/experimental/_types.py`
- `python/cuda/cuda/cooperative/experimental/block/__init__.py`
- `python/cuda/cuda/cooperative/experimental/warp/__init__.py`
- `python/cuda/setup.py`
- `python/cuda/pyproject.toml`

## Evidence Bundle

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