Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC]: Improve reference example code snippets in Thrust #2908

Open
gonidelis opened this issue Nov 20, 2024 · 0 comments
Open

[DOC]: Improve reference example code snippets in Thrust #2908

gonidelis opened this issue Nov 20, 2024 · 0 comments
Assignees

Comments

@gonidelis
Copy link
Member

gonidelis commented Nov 20, 2024

Thrust code snippets under the reference page of our algorithms are poor in two way.

  1. Although we need to keep the concise we also need to make them more complete. Per the cppreference style of examples, we need clear distinction between input and output in the text. Encourage the use of thrust::device_vector instead of custom allocated arrays. Showcase both generic cases and edge cases.

  2. Extract them to literalincludes to make sure they are full compilable scripts that can be cut pasted into main(). It's very discouraging for a new user when that's not the case. This should also resolve:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant