-
Notifications
You must be signed in to change notification settings - Fork 915
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
Use vector factories for host-device copies. #9806
Conversation
…g cudaMemcpyAsync.
Codecov Report
@@ Coverage Diff @@
## branch-22.02 #9806 +/- ##
================================================
- Coverage 10.49% 10.47% -0.02%
================================================
Files 119 119
Lines 20305 20368 +63
================================================
+ Hits 2130 2133 +3
- Misses 18175 18235 +60
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@gpucibot merge |
See: #9588 (comment)
In a recent PR review, @jrhemstad suggested switching to vector factories for one-way host-device data copying (that is, cases where using a
hostdevice_vector
isn't the right choice).This PR applies that suggestion more broadly across the code base, replacing a number of simple cases where a (device) vector was being constructed followed by a call to
CUDA_TRY(cudaMemcpyAsync(...))
with the corresponding factory functions. This makes the code a little more concise and encourages broader use of these factory functions in the future.