Skip to content

Remove unnecessary addition of 0.0f in vector addition#410

Open
Codebruh-sudo wants to merge 1 commit intoNVIDIA:masterfrom
Codebruh-sudo:Codebruh-sudo-patch-1
Open

Remove unnecessary addition of 0.0f in vector addition#410
Codebruh-sudo wants to merge 1 commit intoNVIDIA:masterfrom
Codebruh-sudo:Codebruh-sudo-patch-1

Conversation

@Codebruh-sudo
Copy link

I was going through the vectorAdd sample when I noticed
the kernel computes A[i] + B[i] + 0.0f.

Adding 0.0f has no effect on the result and looks . unintentional . possibly a leftover from an earlier
edit. Removing it keeps the code clean since this .sample is widely read as a teaching reference.and the result of kernel should be identical before and after change.

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.

1 participant