Hello @hjiang
I have made some modifications based on your code and added CPU affinity setting into my function, but it seems to have some problems. I am looking for your advice.
According to the following previous posts,
Now I am using config_threadpool of each subgraph to enable the CPU setting. In another word
- Splitting the network into N subgraphs (Using your pipeline_graph function)
- Then I add config_threadpool for each subgraphs
- Then I assign CPU affinity to each subgraphs by config_threadpool_numofsubgraph(affinity_mode, num_threads)
For example, If I split into two sub-graphs wanna set first graph → 4 small cores and second graph ->4 big cores, I will use config_threadpool_0(-1, 4) and config_threadpool_1(1, 4) But it seems like those setting are not behave as I expect.
I am wondering how did you implement CPU affinity setting? Is it possible to share your code regarding how you set the cpu affinity even if it’s not fully ready to merge into main TVM?