I compile pytorch(1.5.0) source code with the following setting:
GCC-7.4.0
cmake-3.10.3
python3.7.6
And I export the following environment variables:
export USE_CUDA=0
export USE_OPENMP=1
I build it successfully but I found it can not use multi CPU cores(or make full use of CPU cores?).I set different number of threads and the execution time has not changed.Just like this:
image1120×185 5.44 KB
And when I test the utilization of CPU,I found that only one core was 100 percent utilized, and all the others were 3 to 4 percent utilized.
Then I use pip to install pytorch and I find the situation is different.What caused this ？
I print the DLLs:
compile source code:
image1011×304 10.8 KB
pip install:
image1319×195 9.01 KB
The lipgomp.so is different and Is it the reason?