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

Add mkldnn_version.h to pip package #14899

Merged
merged 2 commits into from
May 7, 2019
Merged
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions tools/pip/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def has_ext_modules(self):
package_data['mxnet'].append('mxnet/libmkldnn.so.0')
shutil.copytree(os.path.join(CURRENT_DIR, 'mxnet-build/3rdparty/mkldnn/include'),
szha marked this conversation as resolved.
Show resolved Hide resolved
os.path.join(CURRENT_DIR, 'mxnet/include/mkldnn'))
shutil.copy(os.path.join(CURRENT_DIR, 'mxnet-build/3rdparty/mkldnn/build/include/mkldnn_version.h'),
os.path.join(CURRENT_DIR, 'mxnet/include/mkldnn'))
if platform.system() == 'Linux':
shutil.copy(os.path.join(os.path.dirname(LIB_PATH[0]), 'libgfortran.so.3'), os.path.join(CURRENT_DIR, 'mxnet'))
package_data['mxnet'].append('mxnet/libgfortran.so.3')
Expand Down