I am performing some pandas
and NumPy
operation, in windows I can see all cores of CPU are running but in Linux environment, everything is running on 1 core.
I want to engage all core so perform the operation fast.
e.g.,
def a():
#some operations
.....
I want to execute this function only once but using all cores. Because when it is using only one core it takes around 6 hours in Linux, although it is taking only 2 hours in the window.
I have seen in windows numexpr is setting default cores to 4.
Is there any way I can do the same thing in Linux from code?