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

Fix horovod build failure when mxnet is built from source #15213

Merged
merged 11 commits into from
Jun 16, 2019
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,7 @@ tests/mxnet_unit_tests
coverage.xml

# Local CMake build config
cmake_options.yml
cmake_options.yml

# header file generated at compile time
include/mkldnn/mkldnn_version.h
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ lint: cpplint rcpplint jnilint pylint

cpplint:
3rdparty/dmlc-core/scripts/lint.py mxnet cpp include src plugin cpp-package tests \
--exclude_path src/operator/contrib/ctc_include
--exclude_path src/operator/contrib/ctc_include include/mkldnn

pylint:
python3 -m pylint --rcfile=$(ROOTDIR)/ci/other/pylintrc --ignore-patterns=".*\.so$$,.*\.dll$$,.*\.dylib$$" python/mxnet tools/caffe_converter/*.py
Expand Down
1 change: 0 additions & 1 deletion include/mkldnn

This file was deleted.

1 change: 1 addition & 0 deletions include/mkldnn/mkldnn.h
1 change: 1 addition & 0 deletions include/mkldnn/mkldnn_types.h
3 changes: 2 additions & 1 deletion mkldnn.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ifeq ($(USE_MKLDNN), 1)
MKLDNN_SUBMODDIR = $(ROOTDIR)/3rdparty/mkldnn
MKLDNN_BUILDDIR = $(MKLDNN_SUBMODDIR)/build
MXNET_LIBDIR = $(ROOTDIR)/lib
MXNET_INCLDIR = $(ROOTDIR)/include
ifeq ($(UNAME_S), Darwin)
OMP_LIBFILE = $(MKLDNNROOT)/lib/libiomp5.dylib
MKLML_LIBFILE = $(MKLDNNROOT)/lib/libmklml.dylib
Expand Down Expand Up @@ -49,7 +50,7 @@ $(MKLDNN_LIBFILE):
cp $(OMP_LIBFILE) $(MXNET_LIBDIR)
cp $(MKLML_LIBFILE) $(MXNET_LIBDIR)
cp $(MKLDNN_LIBFILE) $(MXNET_LIBDIR)

cp $(MKLDNN_BUILDDIR)/include/mkldnn_version.h $(MXNET_INCLDIR)/mkldnn/.
mkldnn_clean:
$(RM) -r 3rdparty/mkldnn/build
$(RM) -r $(MKLDNNROOT)
Expand Down
3 changes: 3 additions & 0 deletions tools/license_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
# Git submodules under different licenses
'3rdparty',

# 3rdparty headerfiles under different licenses
'include/mkldnn',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain? MKL-DNN is also under Apache-2.0.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I imagine mkldnn would be licensed to intel instead of ASF even though the license is apache 2.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license check would fail if this is not whitelisted.


# Code shared with project by author - see file for details
'src/operator/special_functions-inl.h',

Expand Down