NVIDIA / NVIDIA/cccl

[DOC]: Example of using CCCL with NVRTC

Open
#5,032 1 comment 3 reactions 1 assignee Claimed by @wmaxey View on GitHub
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

### Is this a duplicate?

- [x] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cccl/issues) for this bug and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)

### Is this for new documentation, or an update to existing docs?

New

### Describe the incorrect/future/missing documentation

As a user of CCCL with NVRTC, I would like a simple, standalone example of using CCCL with NVRTC.

While not all of CCCL works with NVRTC, all of the `cuda::` entities and all `cub::Block*` and `cub::Warp*` utilities do.

For simplicity, we can just use the same example kernel from our other example: https://github.com/NVIDIA/cccl/blob/b7697c6f3ee95408b189fe167accc95c45d3a2cc/examples/basic/example.cu#L37-L58

I would like a complete example that compiles this kernel with NVRTC and then executes it and prints the result.

### If this is a correction, please provide a link to the incorrect documentation. If this is a new documentation request, please link to where you have looked.

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.