Skip to content

Conversation

clan
Copy link
Contributor

@clan clan commented Jul 24, 2025

since python 3.12, os.fork now raise a DeprecationWarning, see https://docs.python.org/3/whatsnew/3.12.html#deprecated:

/usr/bin/atopgpud:283: DeprecationWarning: This process (pid=64696)
is multi-threaded, use of fork() may lead to deadlocks in the child.

so let's fork as early as possible, before any thread action (gpulock & "import pynvml").

clan added 2 commits July 24, 2025 15:49
since python 3.12, os.fork now raise a DeprecationWarning, see
https://docs.python.org/3/whatsnew/3.12.html#deprecated:

> /usr/bin/atopgpud:283: DeprecationWarning: This process (pid=64696)
> is multi-threaded, use of fork() may lead to deadlocks in the child.

so let's fork as early as possible, before any thread action (gpulock &
"import pynvml").

Signed-off-by: Z. Liu <[email protected]>
so we can handle it by openrc

Signed-off-by: Z. Liu <[email protected]>
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