---
id: pr-cccl-cub-8928
repo: NVIDIA/cccl
pr: 8928
title: '[c2h] Make catch macros work on device'
author: davebayer
date: '2026-05-14'
url: https://github.com/NVIDIA/cccl/pull/8928
source_category: upstream-code
architectures:
- sm100
tags:
- cuda kernel
techniques: []
hardware_features: []
kernel_types: []
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 16d667a4782ebf7fa9b59c353c52af8d494c0ace
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- c2h/CMakeLists.txt
- c2h/include/c2h/catch2_test_helper.h
- c2h/include/c2h/catch2_test_macros.h
- cub/test/catch2_test_device_radix_sort_custom.cu
- cub/test/catch2_test_device_topk_api.cu
- cub/test/insert_nested_NVTX_range_guard.h
- cudax/test/common/testing.cuh
- cudax/test/cufile/driver_register.cu
- cudax/test/utility/optionally_static.cu
- libcudacxx/test/libcudacxx/cuda/ccclrt/common/testing.cuh
- libcudacxx/test/libcudacxx/cuda/containers/buffer/access.cu
- libcudacxx/test/libcudacxx/cuda/memory_resource/resources/shared_memory_pools.cu
artifact_dir: evidence/pull-bundles/cccl-cub/gh-8928
head_ref_oid: 490c5312a563f7433e56da3ad75a6e63e0bba754
---
# [c2h] Make catch macros work on device

- Repository: `NVIDIA/cccl`
- PR: [8928](https://github.com/NVIDIA/cccl/pull/8928)
- 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

- `c2h/CMakeLists.txt`
- `c2h/include/c2h/catch2_test_helper.h`
- `c2h/include/c2h/catch2_test_macros.h`
- `cub/test/catch2_test_device_radix_sort_custom.cu`
- `cub/test/catch2_test_device_topk_api.cu`
- `cub/test/insert_nested_NVTX_range_guard.h`
- `cudax/test/common/testing.cuh`
- `cudax/test/cufile/driver_register.cu`
- `cudax/test/utility/optionally_static.cu`
- `libcudacxx/test/libcudacxx/cuda/ccclrt/common/testing.cuh`
- `libcudacxx/test/libcudacxx/cuda/containers/buffer/access.cu`
- `libcudacxx/test/libcudacxx/cuda/memory_resource/resources/shared_memory_pools.cu`

## Evidence Bundle

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