NVIDIA / NVIDIA/cccl

[FEA]: Resource-Based Buffer Creation and Consumption Example

Open
#5,710 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

Implement an example with two functions: one accepting a resource to create an async_buffer, and another consuming it. Both should have host and device paths based on resource/buffer properties, showing how execution space selection propagates via types. Prefer host execution if available, as all our resources are device-accessible.

Demonstrate API usage such as:
auto buffer = produce_buffer(some_resource);
consume_buffer(buffer);

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.