Setting the CPU affinity and number of cores locally without RPC Remote

This problem is fixed by myslef. I was able to set it locally without RPC Remote.

What I did is very similar with the aforementioned setting: hooks c++ into python

In my python/runtime/module.py, I add “conf_set” function inside,

to set the configuration, I can direct use this command just like we did in remote.get_function

config_threadpool = module.module.config_set(remote.get_function('runtime.config_threadpool')