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

Notify users about hidden overhead when passing in numpy buffers #7

Open
alex-soklev opened this issue Sep 20, 2021 · 0 comments
Open

Comments

@alex-soklev
Copy link
Contributor

OptiX works with both CUPY and NUMPY buffers, while CUPY is handled natively, Numpy can't so we allocate a GPU buffer to copy the numpy pointer into, then run the calculations on the GPU buffer, and then we transfer the results back to the numpy pointer. While this kind of workflow is expected, I've noticed that numba produces a user-facing warning that this usage results in an unnecessary overhead. Maybe we should produce such a warning as well.

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