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

device debug print helper #226

Open
bd4 opened this issue Nov 28, 2022 · 1 comment
Open

device debug print helper #226

bd4 opened this issue Nov 28, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@bd4
Copy link
Contributor

bd4 commented Nov 28, 2022

With the new default backend (not using thrust), it's not easy to print a single value or small range of values out of a device gtensor object.

Possible APIs:

  • member function, .host_view(...slice..), normal view if is host accessible, otherwise copies
  • free function, gt::device_print(a, ...slice...)
@bd4 bd4 added enhancement New feature or request good first issue Good for newcomers labels Nov 28, 2022
@bd4
Copy link
Contributor Author

bd4 commented Nov 28, 2022

one advantage of host_view type API, is it could be used in tests to avoid an explicit host vector declaration and copy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant