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

scoped_existence_ensurer_t fails if the driver has not been initialized #396

Closed
eyalroz opened this issue Aug 23, 2022 · 0 comments
Closed

Comments

@eyalroz
Copy link
Owner

eyalroz commented Aug 23, 2022

Currently, scoped_existence_ensurer_t uses context::current::detail_::get_handle(), which assumes the driver has been initialized. To drop this assumption, we need to check the return status of the CUDA driver API call.

@eyalroz eyalroz added the bug label Aug 23, 2022
@eyalroz eyalroz self-assigned this Aug 23, 2022
eyalroz added a commit that referenced this issue Aug 23, 2022
… profiling

* `context::current::detail_::scoped_existence_ensurer_t` will now initialize the CUDA driver if necessary - as part of creating a context when none exists.
* The profiling `scope` class now has a `scoped_existence_ensurer_t` member - which ensures the driver is initialized and that some context is current when profiling begins.
eyalroz added a commit that referenced this issue Aug 24, 2022
… profiling

* `context::current::detail_::scoped_existence_ensurer_t` will now initialize the CUDA driver if necessary - as part of creating a context when none exists.
* The profiling `scope` class now has a `scoped_existence_ensurer_t` member - which ensures the driver is initialized and that some context is current when profiling begins.
eyalroz added a commit that referenced this issue Aug 27, 2022
… profiling

* `context::current::detail_::scoped_existence_ensurer_t` will now initialize the CUDA driver if necessary - as part of creating a context when none exists.
* The profiling `scope` class now has a `scoped_existence_ensurer_t` member - which ensures the driver is initialized and that some context is current when profiling begins.
eyalroz added a commit that referenced this issue Aug 30, 2022
… profiling

* `context::current::detail_::scoped_existence_ensurer_t` will now initialize the CUDA driver if necessary - as part of creating a context when none exists.
* The profiling `scope` class now has a `scoped_existence_ensurer_t` member - which ensures the driver is initialized and that some context is current when profiling begins.
@eyalroz eyalroz closed this as completed Nov 18, 2022
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