asyncexectutor在avx和mkldnn选项打开下,无法利用多核优势
Created by: ccmeteorljh
具体测试数据如下:
Text_classifiction
parallelexecutor (CPU_NUM=4) | asyncexecutor(CPU_NUM=4) | |
---|---|---|
0.0.0 (avx=OFF Mkldnn=OFF) | Process time used 108s Real time used 54.5s | Process time used 82s Real time used 22.2s |
1.2.0 (avx=ON Mkldnn=ON) | Process time used 113s Real time used 59.2s | Process time used 87.4s Real time used 83.6s |
Gru4rec
parallelexecutor (CPU_NUM=4) | executor | |
---|---|---|
0.0.0 (avx=OFF Mkldnn=OFF) | cost_time is 329.360240936 | cost_time=1156.43512392 |
1.2.0 (avx=ON Mkldnn=ON) | cost_time is 327.845594168 cost_time is 338.519244909 | cost_time=1116.48588705 |