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

Cuda memcpy #47

Merged
merged 5 commits into from
Dec 20, 2024
Merged

Cuda memcpy #47

merged 5 commits into from
Dec 20, 2024

Conversation

biddisco
Copy link
Collaborator

Fixes a longstanding bug with gpu usage

Comment on lines 80 to 81
auto device_handle() const noexcept { return m_data.m_device_handle; }
auto& device_handle() noexcept { return m_data.m_device_handle; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need to be able to change a device handle?

Copy link
Collaborator Author

@biddisco biddisco Dec 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very good question. We have a non const version of the host ptr handle ref as well and I added this access to fix a compilation error. But looking again at my code, I added a const to the use of the handle ref and now I do not need to non const access, so I will remove this. Might also be able to do the same with the host ptr handle ref ...

@boeschf boeschf merged commit 778a851 into master Dec 20, 2024
8 checks passed
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.

2 participants