Hi there!
May be some faced with the same issue…
i try to use my app on the remote server with 30+ cores. But only 1 core is used.
How can i use full abilities of it?
That is because of the GIL. There are basically two ways around this:
-
Extension modules (written in C) are able to release the GIL. For example, many algorithms in
scikit_learn
can use several cores at the same time. They take a parameter that gives the caller some control over this behavior. -
The module
multiprocessing
in the standard library.
but why are all cores used when working on my PC?
I can only guess. Because your PC is running more programs?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.