Skip to content

Commit

Permalink
Fix broken amalgamation (apache#12792)
Browse files Browse the repository at this point in the history
* Fix broken amalgamation

* Fixes apache#8850

* Update CONTRIBUTORS.md

* Update CONTRIBUTORS.md
  • Loading branch information
ufoym authored and vdantu committed Mar 31, 2019
1 parent df0b97d commit a556d83
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ List of Contributors
* [Piyush Ghai](https://github.com/piyushghai)
* [Zach Boldyga](https://github.com/zboldyga)

* [Ming Yang](http://ufoym.com)

Label Bot
---------
* [mxnet-label-bot](https://github.com/mxnet-label-bot)
Expand Down
7 changes: 6 additions & 1 deletion amalgamation/amalgamation.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ def expand(x, pending, stage):
continue
path = m.groups()[0]
h = path.strip('./') if "../3rdparty/" not in path else path
source = find_source(h, x, stage)
if h.endswith('complex.h') and x.endswith('openblas_config.h'):
source = ''
elif h.startswith('ps/'):
source = '../3rdparty/ps-lite/include/' + h
else:
source = find_source(h, x, stage)
if not source:
if (h not in blacklist and
h not in sysheaders and
Expand Down
1 change: 1 addition & 0 deletions amalgamation/dmlc-minimum0.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "../3rdparty/dmlc-core/src/io/local_filesys.cc"
#include "../3rdparty/dmlc-core/src/data.cc"
#include "../3rdparty/dmlc-core/src/io.cc"
#include "../3rdparty/dmlc-core/src/io/filesys.cc"
#include "../3rdparty/dmlc-core/src/recordio.cc"


7 changes: 7 additions & 0 deletions amalgamation/mxnet_predict0.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,25 +43,31 @@
#define DISABLE_OPENMP 1
#define DMLC_LOG_STACK_TRACE 0

#include "src/common/utils.cc"

#include "src/ndarray/ndarray_function.cc"
#include "src/ndarray/ndarray.cc"

#include "src/imperative/imperative.cc"
#include "src/imperative/imperative_utils.cc"
#include "src/imperative/cached_op.cc"

#include "src/engine/engine.cc"
#include "src/engine/naive_engine.cc"
#include "src/engine/openmp.cc"

#include "src/profiler/profiler.cc"
#include "src/profiler/aggregate_stats.cc"

#include "src/executor/graph_executor.cc"
#include "src/executor/attach_op_execs_pass.cc"
#include "src/executor/attach_op_resource_pass.cc"
#include "src/executor/inplace_addto_detect_pass.cc"
#include "src/executor/infer_graph_attr_pass.cc"

#include "src/nnvm/legacy_json_util.cc"
#include "src/nnvm/legacy_op_util.cc"
#include "src/nnvm/graph_editor.cc"

#include "src/operator/operator.cc"
#include "src/operator/operator_util.cc"
Expand Down Expand Up @@ -93,4 +99,5 @@
#include "src/c_api/c_api_symbolic.cc"
#include "src/c_api/c_api_ndarray.cc"
#include "src/c_api/c_api_error.cc"
#include "src/c_api/c_api_profile.cc"

0 comments on commit a556d83

Please sign in to comment.