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

![image|354x108](upload://7FafocynhTfwzAiSAFiRTsJaYlJ.png) 

What I did is very similar with the aforementioned setting: hooks c++ into 
python
[quote="popojames, post:3, topic:11306"]
I tried to create a function in “module” (python/runtime/module.py) that hooks 
c++ into python so that I can directly use

> module.module.get_global_function(‘runtime.config_threadpool’)
[/quote]

In my **python/runtime/module.py**, I add "conf_set" function inside,
![image|421x299](upload://5U28DTqf16stVmjaKrEePaqez5h.png)

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')





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/setting-the-cpu-affinity-and-number-of-cores-locally-without-rpc-remote/11306/4)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/f141ac5dc840c482d50f470d9f3da5b2d532c7ee96d5c5a5b873f21a7bc118ee).

Reply via email to