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

Fix bug with cudamemset's parameter #1302

Merged
merged 3 commits into from
Nov 23, 2021
Merged

Conversation

galeselee
Copy link
Contributor

cudaMemset and memset only accept integer type to fill the memory.
1.Alter template function: memset_device_memory
2.I notice there are many uses of memset or cudamemset use float type to fill the memory, but It is strange there isn't ant compile error....

@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2021

Codecov Report

Merging #1302 (5987b7d) into devel (9c517eb) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            devel    #1302   +/-   ##
=======================================
  Coverage   75.90%   75.90%           
=======================================
  Files          91       91           
  Lines        7417     7417           
=======================================
  Hits         5630     5630           
  Misses       1787     1787           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c517eb...5987b7d. Read the comment docs.

@wanghan-iapcm
Copy link
Collaborator

It is an interesting bug, I agree with your fix.

@wanghan-iapcm wanghan-iapcm merged commit 338ba31 into deepmodeling:devel Nov 23, 2021
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

4 participants