TaoLv commented on issue #13530: Integrate MKLDNN Conv1d and support 3d layout
URL: https://github.com/apache/incubator-mxnet/pull/13530#issuecomment-451357349
 
 
   @bputrycz Cannot reproduce the problem. The code snippet you provided scales 
well on my machine:
   ```
   $ OMP_NUM_THREADS=1 python conv1d.py | grep "Convolution\|Activation"
   Activation                             60         183.5660           2.6600  
         6.1490           3.0594
   Convolution                            60        1047.5291          14.2060  
        26.2510          17.4588
   $
   $ OMP_NUM_THREADS=2 python conv1d.py | grep "Convolution\|Activation"
   Activation                             60         103.8990           1.4330  
         3.5280           1.7316
   Convolution                            60         550.4830           7.5440  
        13.9890           9.1747
   $
   $ OMP_NUM_THREADS=4 python conv1d.py | grep "Convolution\|Activation"
   Activation                             60          57.5180           0.7640  
         2.4380           0.9586
   Convolution                            60         290.6110           3.8830  
         7.8330           4.8435
   $
   $ OMP_NUM_THREADS=8 python conv1d.py | grep "Convolution\|Activation"
   Activation                             60          39.8030           0.4470  
         1.8200           0.6634
   Convolution                            60         179.9880           2.2860  
         5.4140           2.9998
   ```
   
   Have you ever tried the cpu affinity before run multi-thread case?
   ```
   export KMP_AFFINITY=granularity=fine,compact
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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