Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Add print::head utility function #55

Merged
merged 1 commit into from
Apr 23, 2021
Merged

Conversation

bkj
Copy link
Contributor

@bkj bkj commented Apr 23, 2021

We often want to print some of the results of an algorithm, but don't want to print values for millions of vertices.

This commit

  • adds a gunrock::print::head(x, k) function that prints the first k elements of a thrust vector x.
  • changes examples/* that were using ugly code to use this helper.

@neoblizz neoblizz merged commit 721c0e0 into gunrock:master Apr 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants