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

Inconsistent use of wrapped arguments #227

Open
john-romein opened this issue Sep 29, 2023 · 0 comments
Open

Inconsistent use of wrapped arguments #227

john-romein opened this issue Sep 29, 2023 · 0 comments

Comments

@john-romein
Copy link
Contributor

Some members of the Stream class take DeviceMemory as an argument, others a CUdeviceptr. This should be consistent. In general, I think we should use wrapped objects as arguments, as this is the common case. And why is the DeviceMemory(CUdeviceptr) constructor explicit now? This prevents the user from passing a CUdeviceptr as an actual argument, which would otherwise have been converted implicitly to a DeviceMemory argument.

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

No branches or pull requests

1 participant