---
id: pr-cccl-cub-7676
repo: NVIDIA/cccl
pr: 7676
title: Generalized `cudax::copy_bytes` for `mdspan`
author: fbusato
date: '2026-03-17'
url: https://github.com/NVIDIA/cccl/pull/7676
source_category: upstream-code
architectures:
- sm100
tags:
- sort
techniques: []
hardware_features: []
kernel_types:
- sort
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: d94dc526c38d66ad0179eb05573604cb538c2ff6
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- cudax/include/cuda/experimental/__copy_bytes/abs_integer.cuh
- cudax/include/cuda/experimental/__copy_bytes/mdspan_d2h_h2d.cuh
- cudax/include/cuda/experimental/__copy_bytes/mdspan_to_raw_tensor.cuh
- cudax/include/cuda/experimental/__copy_bytes/memcpy_batch_tiles.cuh
- cudax/include/cuda/experimental/__copy_bytes/print_raw_tensor.cuh
- cudax/include/cuda/experimental/__copy_bytes/simplify_paired.cuh
- cudax/include/cuda/experimental/__copy_bytes/tensor_query.cuh
- cudax/include/cuda/experimental/__copy_bytes/types.cuh
- cudax/include/cuda/experimental/copy_bytes.cuh
- cudax/test/CMakeLists.txt
- cudax/test/copy_bytes/mdspan_d2h_h2d.cu
- docs/cudax/Doxyfile
- docs/cudax/index.rst
- libcudacxx/include/cuda/__driver/driver_api.h
- libcudacxx/include/cuda/__mdspan/dlpack_to_mdspan.h
- libcudacxx/include/cuda/__mdspan/traits.h
- libcudacxx/include/cuda/std/__mdspan/layout_right.h
- libcudacxx/include/cuda/std/__mdspan/mdspan.h
artifact_dir: evidence/pull-bundles/cccl-cub/gh-7676
head_ref_oid: 802f01d3b5d57322aac83fcb3f673bd5538127ce
---
# Generalized `cudax::copy_bytes` for `mdspan`

- Repository: `NVIDIA/cccl`
- PR: [7676](https://github.com/NVIDIA/cccl/pull/7676)
- 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/__copy_bytes/abs_integer.cuh`
- `cudax/include/cuda/experimental/__copy_bytes/mdspan_d2h_h2d.cuh`
- `cudax/include/cuda/experimental/__copy_bytes/mdspan_to_raw_tensor.cuh`
- `cudax/include/cuda/experimental/__copy_bytes/memcpy_batch_tiles.cuh`
- `cudax/include/cuda/experimental/__copy_bytes/print_raw_tensor.cuh`
- `cudax/include/cuda/experimental/__copy_bytes/simplify_paired.cuh`
- `cudax/include/cuda/experimental/__copy_bytes/tensor_query.cuh`
- `cudax/include/cuda/experimental/__copy_bytes/types.cuh`
- `cudax/include/cuda/experimental/copy_bytes.cuh`
- `cudax/test/CMakeLists.txt`
- `cudax/test/copy_bytes/mdspan_d2h_h2d.cu`
- `docs/cudax/Doxyfile`
- `docs/cudax/index.rst`
- `libcudacxx/include/cuda/__driver/driver_api.h`
- `libcudacxx/include/cuda/__mdspan/dlpack_to_mdspan.h`
- `libcudacxx/include/cuda/__mdspan/traits.h`
- `libcudacxx/include/cuda/std/__mdspan/layout_right.h`
- `libcudacxx/include/cuda/std/__mdspan/mdspan.h`

## Evidence Bundle

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