Hello,

This is a continuing discussion from [Use all cores in a big.LITTLE 
architecture](https://discuss.tvm.apache.org/t/use-all-cores-in-a-big-little-architecture/8474/6):

I am wondering how can we adjust CPU affinity and the numbers of the thread 
**locally** without using "remote setting".

Now I was able to set the numbers of the thread through RPC.remtoe as the 
previous discussion shows (command as shown below).

[quote="FrozenGene, post:5, topic:8474"]
```
config_threadpool = remote.get_function('runtime.config_threadpool')
# affinity_mode: kBig = 1, kLittle = -1. kDefault = 0. pass 1 or -1 to control 
the cores
config_threadpool(affinity_mode, num_threads)
```
[/quote]
![image|499x132](upload://aU8dBFtLwvKmum9dL6qJinG0vdP.png) 


However, I am still wondering can we set it locally without RPC Remote like the 
following figure shows? According to 
https://discuss.tvm.apache.org/t/can-tvm-split-work-into-different-layers-and-assign-layers-into-different-cores/11161/10?u=popojames,
 it seems it is possible to do so. 

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


Does anyone have any idea about this question?
Thanks :)

cc @FrozenGene  @hjiang





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/setting-the-cpu-affinity-and-number-of-cores-locally-without-rpc-remote/11306/1)
 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/32a65e14e3ffb130762cb17d057eeafac13e92201ff9d16d68364eaedb9c39d7).

Reply via email to