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

Add a device ID field to the texture_view object #629

Closed
eyalroz opened this issue Mar 31, 2024 · 0 comments
Closed

Add a device ID field to the texture_view object #629

eyalroz opened this issue Mar 31, 2024 · 0 comments

Comments

@eyalroz
Copy link
Owner

eyalroz commented Mar 31, 2024

For consistency, and for reducing the number of API calls we need to make, the cuda::texture_view_t class should gain a device_id_ member alongside its context_handle_ member.

We can then return the context, when necessary, by simple wrapping of the device ID and context handle fields, with no extra API call.

In fact, we can also do this for array_t's, which we currently aren't doing.

@eyalroz eyalroz added the task label Mar 31, 2024
@eyalroz eyalroz self-assigned this Mar 31, 2024
eyalroz added a commit that referenced this issue Apr 5, 2024
…ning contexts for `array_t`'s and `texture_view_t`'s without having to make an API call for the device ID
eyalroz added a commit that referenced this issue Apr 20, 2024
…ning contexts for `array_t`'s and `texture_view_t`'s without having to make an API call for the device ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant