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 __scoped_device for changing and restoring the current device #1

Conversation

ericniebler
Copy link
Collaborator

Description

This adds an undocumented __scoped_device class for pushing and popping the current device within a scope.

In addition, it gives the device type a converting constructor from int.

closes NVIDIA#2040

@ericniebler ericniebler merged commit abf7fbc into pciolkosz:2065-add-a-strongly-typed-wrapper-for-a-device-id Jul 25, 2024
1 check failed
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.

1 participant