kpuatamazon commented on issue #17980:
URL:
https://github.com/apache/incubator-mxnet/issues/17980#issuecomment-626563301
@ChaiBapchya to be clear, here's how I am building the second option:
```bash
export CXXFLAGS="${CXXFLAGS} -DUSE_MKL -I/opt/intel/mkl/include"
unset LD_PRELOAD
kpuatamazon commented on issue #17980:
URL:
https://github.com/apache/incubator-mxnet/issues/17980#issuecomment-623737885
DNNL has only a hidden unsupported option to link to MKL. It will not link
to MKL by default.
kpuatamazon commented on issue #17980: When compiled with MKL, fully_connected
calls DNNL while dot and batch_dot call MKL
URL:
https://github.com/apache/incubator-mxnet/issues/17980#issuecomment-613009431
In case somebody finds this issue and wants their optimized build, here is a
kpuatamazon commented on issue #17980: When compiled with MKL, fully_connected
calls DNNL while dot and batch_dot call MKL
URL:
https://github.com/apache/incubator-mxnet/issues/17980#issuecomment-612874407
@TaoLv Regarding your comment
> how to improve the performance of FullyConnected
kpuatamazon commented on issue #17980: When compiled with MKL, fully_connected
calls DNNL while dot and batch_dot call MKL
URL:
https://github.com/apache/incubator-mxnet/issues/17980#issuecomment-612836744
Single-threaded benchmarks (`OMP_NUM_THREADS=1`) to confirm that it's not a
kpuatamazon commented on issue #17980: When compiled with MKL, fully_connected
calls DNNL while dot and batch_dot call MKL
URL:
https://github.com/apache/incubator-mxnet/issues/17980#issuecomment-609906743
> I don't think it's possible at this moment.
Can we please have a build option
kpuatamazon commented on issue #17980: When compiled with MKL, fully_connected
calls DNNL while dot and batch_dot call MKL
URL:
https://github.com/apache/incubator-mxnet/issues/17980#issuecomment-609875547
This still uses MKLDNN for `FullyConnected`
```
cmake -GNinja -DUSE_CUDA=OFF
kpuatamazon commented on issue #17980: When compiled with MKL, fully_connected
calls DNNL while dot and batch_dot call MKL
URL:
https://github.com/apache/incubator-mxnet/issues/17980#issuecomment-609859032
I also tried the latest DNNL:
```bash
cd 3rdparty
rm -rf mkldnn
git
kpuatamazon commented on issue #17980: When compiled with MKL, fully_connected
calls DNNL while dot and batch_dot call MKL
URL:
https://github.com/apache/incubator-mxnet/issues/17980#issuecomment-609843360
Here's some benchmarks on 2fff11d4233814aa4ad07858779338090ec2132d (current
tip of