Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Add an example that shows how to use custom CUDA streams. #1669

Merged
merged 2 commits into from
May 6, 2022

Conversation

alliepiper
Copy link
Collaborator

Fixes #1626.

@alliepiper alliepiper added type: enhancement New feature or request. P2: nice to have Desired, but not necessary. labels Apr 26, 2022
@alliepiper alliepiper added this to the 1.17.0 milestone Apr 26, 2022
@alliepiper
Copy link
Collaborator Author

run tests

@alliepiper alliepiper added the testing: gpuCI passed Passed gpuCI testing. label May 4, 2022
Copy link
Collaborator

@jrhemstad jrhemstad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It felt like after #1568 we should have a description of the synchronization behavior and describe the no_sync version as well.

I changed the example to an inclusive_scan instead of a reduce since reduce will always synchronize and inclusive_scan demonstrates why it's important to have an execution policy that synchronizes sometimes.

@alliepiper
Copy link
Collaborator Author

Sounds good to me, added @jrhemstad's proposed changes.

run tests

@alliepiper alliepiper added testing: gpuCI in progress Started gpuCI testing. and removed testing: gpuCI passed Passed gpuCI testing. labels May 5, 2022
@alliepiper alliepiper self-assigned this May 5, 2022
@alliepiper
Copy link
Collaborator Author

Fixed typo.

run tests

@alliepiper alliepiper merged commit 530bbd2 into NVIDIA:main May 6, 2022
@alliepiper alliepiper deleted the stream_example branch May 6, 2022 15:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2: nice to have Desired, but not necessary. testing: gpuCI in progress Started gpuCI testing. type: enhancement New feature or request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add example for using streams with Thrust algorithms
3 participants