NVIDIA / NVIDIA/cccl

[BUG]: Immediate sequence copies the input

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

Description

It's not clear whether the `immediate_sequence` holds a view over an array or whether it copies the data to internal representation. Currently, it just copies everything ([example](https://godbolt.org/z/j6Kas3zs8)).

This is not ideal, because it's really easy to forget to make a view over for example a `std::vector` before passing it to the immediate sequence constructor.

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.