We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pub fn initialize() -> Result<()> { std::panic::catch_unwind(|| unsafe { let code = sys::hipInit(0); ((), code).to_result() }) .unwrap_or_else(|_| Err(HipError::from_kind(HipErrorKind::InvalidValue))) // Map panic to InvalidValue error }
This function does not panic when called twice. take it back to it's original form.
The text was updated successfully, but these errors were encountered:
a1a177e
Successfully merging a pull request may close this issue.
This function does not panic when called twice. take it back to it's original form.
The text was updated successfully, but these errors were encountered: