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

Commit

Permalink
package lib arm compute in wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Jun 23, 2023
1 parent e9f92b5 commit 961cc87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/pip/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
if os.path.exists(os.path.join(libdir, 'libopenblas.so.0')):
shutil.copy(os.path.join(libdir, 'libopenblas.so.0'), mxdir)
package_data['mxnet'].append('mxnet/libopenblas.so.0')
if os.path.exists(os.path.join(libdir, 'libarm_compute.so')):
shutil.copy(os.path.join(libdir, 'libarm_compute.so'), mxdir)
package_data['mxnet'].append('mxnet/libarm_compute.so')

# copy license and notice
shutil.copytree(os.path.join(CURRENT_DIR, 'mxnet-build/licenses'),
Expand Down
3 changes: 3 additions & 0 deletions tools/staticbuild/build_lib_cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ if [[ $PLATFORM == 'linux' ]]; then
cp -L build/libmxnet.so lib/libmxnet.so
cp -L $(ldd lib/libmxnet.so | grep libgfortran | awk '{print $3}') lib/
cp -L staticdeps/lib/libopenblas.so lib/libopenblas.so.0
if [[ $ARCH == 'aarch64' ]]; then
cp -L /work/deps/acl/ComputeLibrary/build/libarm_compute.so lib/libarm_compute.so
fi
elif [[ $PLATFORM == 'darwin' ]]; then
cp -L build/libmxnet.dylib lib/libmxnet.dylib
fi
Expand Down

0 comments on commit 961cc87

Please sign in to comment.