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

double fix coalescing.cu #3

Merged
merged 1 commit into from
Sep 15, 2014

Conversation

rcrovella
Copy link
Contributor

Here:
https://github.com/parallel-forall/code-samples/blob/master/series/cuda-cpp/coalescing-global/coalescing.cu

lines 54 and 70 are passing a double for the second argument:

checkCuda( cudaMemset(d_a, 0.0, n * sizeof(T)) );

This is not really sensible and may trigger compiler warnings like this:

coalescing.cu:70: warning: passing âdoubleâ for argument 2 to âcudaError_t cudaMemset(void*, int, size_t)â

I would recommend changing those 2 instances of 0.0 to just 0
I guess there is also a fix for "no newline at end of file" which may have been inserted by my editor

harrism added a commit that referenced this pull request Sep 15, 2014
@harrism harrism merged commit 03742f8 into NVIDIA-developer-blog:master Sep 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants