This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yandai
committed
Oct 8, 2016
1 parent
d7ad65b
commit 7b96e18
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# MKLDNN PLUGIN | ||
|
||
MKLDNN is one intel released library to accelerate Deep Neural Network (DNN) applications on Intel architecture. | ||
This README shows users how to setup mxnet with MKLDNN accerlation. | ||
|
||
## Prepare MKLDNN Minimal Library | ||
``` | ||
cd <MXNET ROOTDIR> | ||
mkdir -p ./external/mkl | ||
wget https://github.com/intel/caffe/releases/download/self_containted_MKLGOLD/mklml_lnx_2017.0.0.20160801.tgz | ||
mv mklml_lnx_2017.0.0.20160801.tgz ./external/mkl | ||
cd external/mkl | ||
tar zxvf mklml_lnx_2017.0.0.20160801.tgz | ||
cd <MXNET ROOTDIR> | ||
``` | ||
|
||
## modify config.mk | ||
``` | ||
USE_MKLDNN = 1 # set USE_MKLDNN on | ||
MKLDNN_ROOT = <MXNET ROOTDIR>/external/mkl/mklml_lnx_2017.0.0.20160801 # set MKLDNN ROOT PATH | ||
``` | ||
|
||
## Update LD_LIBRARY_PATH | ||
``` | ||
export LD_LIBRARY_PATH=<MXNET ROOTDIR>/external/mkl/mklml_lnx_2017.0.0.20160801/lib:$LD_LIBRARY_PATH | ||
``` | ||
|
||
## build mxnet | ||
``` | ||
make -j8 | ||
``` |