Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Add MKLDNN headers to pip package #14339

Merged
merged 2 commits into from
Mar 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tools/pip/MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ recursive-include mxnet *.so.*
recursive-include mxnet *.dylib
recursive-include mxnet *_LICENSE
recursive-include mxnet *.h
recursive-include mxnet *.hpp
recursive-include mxnet *.cuh
recursive-include dmlc_tracker *.py
2 changes: 2 additions & 0 deletions tools/pip/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ def has_ext_modules(self):
package_data['mxnet'].append('mxnet/libiomp5.so')
package_data['mxnet'].append('mxnet/libmkldnn.so.0')
shutil.copy(os.path.join(os.path.dirname(LIB_PATH[0]), '../MKLML_LICENSE'), os.path.join(CURRENT_DIR, 'mxnet'))
shutil.copytree(os.path.join(CURRENT_DIR, 'mxnet-build/3rdparty/mkldnn/include'),
os.path.join(CURRENT_DIR, 'mxnet/include/mkldnn'))
package_data['mxnet'].append('mxnet/MKLML_LICENSE')
if platform.system() == 'Linux':
shutil.copy(os.path.join(os.path.dirname(LIB_PATH[0]), 'libgfortran.so.3'), os.path.join(CURRENT_DIR, 'mxnet'))
Expand Down