Hi All,
I have a PC with 4 cores. I want to use 2 cores for the TVM inference and other two cores for another tasks in my application.
Example:
core 1 and core 2 == > TVM
core 3 and core 4 ==> My own task in my App.
I was able to set the to tell TVM to use 2 cores, but I was not able to figure out to explicitly bind specific cores to TVM. For example, I want TVM to use core 1 and core 2. However, it looks like TVM randomly allocates 2 cores among four cores when I start the inference. I have noticed that TVM inference sometimes chooses core 1 and core 2 and sometimes core 1 and core 3 …etc.
Any suggestions how to explicitly bind TVM inference to core 1 and core 2?
I also read that “TVM_BIND_THREADS =1” sets the CPU affinity, however, it seems it does not have any impact when I set it (TVM_BIND_THREADS=1) or unset it (TVM_BIND_THREADS=0).