Skip to content

Conversation

baoleai
Copy link

@baoleai baoleai commented Aug 5, 2024

This PR leverages the MaybeSetDevice function in cuda device guard setDevice function to address the issue of unnecessary context memory allocation on cuda:0 when using other devices, such as XLA:GPU.

@baoleai baoleai requested a review from anw90 August 5, 2024 03:23
@baoleai baoleai merged commit 154147a into v2.3.0 Aug 5, 2024
1 check passed
@baoleai baoleai deleted the features/fix_cuda12 branch August 5, 2024 03:31
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