-
Notifications
You must be signed in to change notification settings - Fork 197
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
Fixing bad host->device copy #375
Fixing bad host->device copy #375
Conversation
rerun tests |
Not exactly related to these changes, but still, can we also get rid of these two lines? raft/cpp/test/spatial/haversine.cu Lines 79 to 82 in cc06981
|
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
@achirkin, absolutely I can remove those 2 lines. I'm actually surprised it wasn't tripping an error since those two variables are never used. Might be an indication that a flag needs to be enabled during compile. |
@gpucibot merge |
A host vector in haversine knn test was being resized to
n
rathern*d
beforen*d
elements were copied from it to a device vector. Not sure if this is causing the following issue in the test, but it's not correct nonetheless:Since it was happening on host, the only thing I can think of is that somehow there is some host memory being used to determine the amount of device memory to allocate, which is grabbing a garbage value from somewhere.