rongzha1 commented on issue #16891: Upgrading MKLDNN to 1.0 causes performance 
regression.
URL: 
https://github.com/apache/incubator-mxnet/issues/16891#issuecomment-558656729
 
 
   cpu test on both v1.5.x and v1.6.x mkldnn + openblas, but no regression 
issue was found.
   I have tried to use build.sh but failed for: CMake Error at 
simd/CMakeLists.txt:41 (enable_language):
     No CMAKE_ASM_NASM_COMPILER could be found.
   So for v1.5 and v1.6 I build use cmd:
   make -j USE_MKLDNN=1  USE_BLAS=openblas USE_GPERFTOOLS=0
   and setting openblas include and lib directory.
   
   v1.5.x:
     1 [21:43:26] src/io/iter_image_recordio_2.cc:172: ImageRecordIOParser2: 
data/cifar/train.rec, use 4 threads for decoding..
     2 [21:43:26] src/io/iter_image_recordio_2.cc:172: ImageRecordIOParser2: 
data/cifar/test.rec, use 4 threads for decoding..
     3 INFO:root:Epoch[0] Batch [0-50] Speed: 1668.60 samples/sec  
accuracy=0.273897
     4 INFO:root:Epoch[0] Batch [50-100] Speed: 1699.64 samples/sec  
accuracy=0.380312
     5 INFO:root:Epoch[0] Batch [100-150]  Speed: 1692.57 samples/sec  
accuracy=0.425000
     6 INFO:root:Epoch[0] Batch [150-200]  Speed: 1696.67 samples/sec  
accuracy=0.444063
     7 INFO:root:Epoch[0] Batch [200-250]  Speed: 1698.27 samples/sec  
accuracy=0.465000
     8 INFO:root:Epoch[0] Batch [250-300]  Speed: 1693.87 samples/sec  
accuracy=0.497812
     9 INFO:root:Epoch[0] Batch [300-350]  Speed: 1698.26 samples/sec  
accuracy=0.505625
    10 INFO:root:Epoch[0] Batch [350-400]  Speed: 1691.21 samples/sec  
accuracy=0.520000
    11 INFO:root:Epoch[0] Batch [400-450]  Speed: 1694.42 samples/sec  
accuracy=0.538750
    12 INFO:root:Epoch[0] Batch [450-500]  Speed: 1693.73 samples/sec  
accuracy=0.576875
    13 INFO:root:Epoch[0] Batch [500-550]  Speed: 1688.67 samples/sec  
accuracy=0.579063
    14 INFO:root:Epoch[0] Batch [550-600]  Speed: 1686.91 samples/sec  
accuracy=0.585313
    15 INFO:root:Epoch[0] Batch [600-650]  Speed: 1691.39 samples/sec  
accuracy=0.605313
    16 INFO:root:Epoch[0] Batch [650-700]  Speed: 1693.22 samples/sec  
accuracy=0.612812
    17 INFO:root:Epoch[0] Batch [700-750]  Speed: 1692.32 samples/sec  
accuracy=0.603750
    18 INFO:root:Epoch[0] Train-accuracy=0.511549
    19 INFO:root:Epoch[0] Time cost=29.955
    20 INFO:root:Epoch[0] Validation-accuracy=0.642317
   
   v1.6.x:
    1 [22:02:24] src/io/iter_image_recordio_2.cc:178: ImageRecordIOParser2: 
data/cifar/train.rec, use 4 threads for decoding..
     2 [22:02:25] src/io/iter_image_recordio_2.cc:178: ImageRecordIOParser2: 
data/cifar/test.rec, use 4 threads for decoding..
     3 [22:02:25] src/executor/graph_executor.cc:1979: Subgraph backend MKLDNN 
is activated.
     4 
/home/rongzha1/anaconda3/envs/mxnet/lib/python3.6/site-packages/scipy/__init__.py:115:
 UserWarning: Numpy 1.13.3 or above is required for this version of scipy 
(detected version 1.13.1)
     5   UserWarning)
     6 INFO:root:Epoch[0] Batch [0-50] Speed: 2119.74 samples/sec  
accuracy=0.280025
     7 INFO:root:Epoch[0] Batch [50-100] Speed: 2161.65 samples/sec  
accuracy=0.392500
     8 INFO:root:Epoch[0] Batch [100-150]  Speed: 2145.79 samples/sec  
accuracy=0.425938
     9 INFO:root:Epoch[0] Batch [150-200]  Speed: 2145.72 samples/sec  
accuracy=0.448125
    10 INFO:root:Epoch[0] Batch [200-250]  Speed: 2158.03 samples/sec  
accuracy=0.461250
    11 INFO:root:Epoch[0] Batch [250-300]  Speed: 2151.47 samples/sec  
accuracy=0.498125
    12 INFO:root:Epoch[0] Batch [300-350]  Speed: 2157.60 samples/sec  
accuracy=0.515312
    13 INFO:root:Epoch[0] Batch [350-400]  Speed: 2133.91 samples/sec  
accuracy=0.530625
    14 INFO:root:Epoch[0] Batch [400-450]  Speed: 2143.35 samples/sec  
accuracy=0.545625
    15 INFO:root:Epoch[0] Batch [450-500]  Speed: 2153.24 samples/sec  
accuracy=0.577187
    16 INFO:root:Epoch[0] Batch [500-550]  Speed: 2154.20 samples/sec  
accuracy=0.577500
    17 INFO:root:Epoch[0] Batch [550-600]  Speed: 2151.89 samples/sec  
accuracy=0.580625
    18 INFO:root:Epoch[0] Batch [600-650]  Speed: 2162.29 samples/sec  
accuracy=0.596250
    19 INFO:root:Epoch[0] Batch [650-700]  Speed: 2161.74 samples/sec  
accuracy=0.609062
    20 INFO:root:Epoch[0] Batch [700-750]  Speed: 2156.80 samples/sec  
accuracy=0.597812
    21 INFO:root:Epoch[0] Train-accuracy=0.512828
    22 INFO:root:Epoch[0] Time cost=23.642
    23 INFO:root:Epoch[0] Validation-accuracy=0.613455
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to