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

C API: Cache CUDA availability so it's not re-evaluated every API call #10801

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chuckatkins
Copy link
Contributor

No description provided.

@trivialfis trivialfis marked this pull request as ready for review September 5, 2024 03:06
@trivialfis trivialfis marked this pull request as draft September 5, 2024 03:06
@chuckatkins chuckatkins marked this pull request as ready for review September 5, 2024 15:11
// If errors, do nothing, assuming running on CPU only machine.
cudaGetDevice(&device_id_);
}
} catch (dmlc::Error const&) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this error being raised if safe_cuda is not used?

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.

2 participants