Commit 0e9d9816 by Tianqi Chen

trigger travis (#37)

* trigger travis

* fix

* chomo

* make

* squash
parent 1de4a5f1
......@@ -11,6 +11,17 @@ SRC = $(wildcard src/*.cc src/*/*.cc)
ALL_OBJ = $(patsubst src/%.cc, build/%.o, $(SRC))
ALL_DEP = $(ALL_OBJ)
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Darwin)
WHOLE_ARCH= -force_load
NO_WHOLE_ARCH= -noforce_load
else
WHOLE_ARCH= --whole-archive
NO_WHOLE_ARCH= --no-whole-archive
endif
include tests/cpp/unittest.mk
test: $(TEST)
......@@ -27,7 +38,7 @@ lib/libnnvm.a: $(ALL_DEP)
lib/libnnvm_example.so: example/src/operator.cc lib/libnnvm.a
@mkdir -p $(@D)
$(CXX) $(CFLAGS) -shared -o $@ $(filter %.cc, $^) $(LDFLAGS) -Wl,--whole-archive lib/libnnvm.a -Wl,--no-whole-archive
$(CXX) $(CFLAGS) -shared -o $@ $(filter %.cc, $^) $(LDFLAGS) -Wl,${WHOLE_ARCH} lib/libnnvm.a -Wl,${NO_WHOLE_ARCH}
cython:
cd python; python setup.py build_ext --inplace
......
# NNVM: Build deep learning system by parts
[![Build Status](https://travis-ci.org/dmlc/nnvm.svg?branch=master)](https://travis-ci.org/dmlc/nnvm)
[![GitHub license](http://dmlc.github.io/img/apache2.svg)](./LICENSE)
NNVM is not a deep learning library. It is a modular,
decentralized and lightweight part to help build deep learning libraries.
......
......@@ -61,7 +61,7 @@ inline Graph OrderMutation(Graph src) {
* The index of ShapeVector is given by graph.indexed_graph().entry_id
*/
inline Graph InferShape(Graph graph,
ShapeVector shape_inputs = {},
ShapeVector shape_inputs,
std::string shape_attr_key = "") {
if (shape_inputs.size() != 0) {
graph.attrs["shape_inputs"] = std::make_shared<any>(std::move(shape_inputs));
......@@ -81,7 +81,7 @@ inline Graph InferShape(Graph graph,
* The index of ShapeVector is given by graph.indexed_graph().entry_id
*/
inline Graph InferType(Graph graph,
DTypeVector dtype_inputs = {},
DTypeVector dtype_inputs,
std::string dtype_attr_key = "") {
if (dtype_inputs.size() != 0) {
graph.attrs["dtype_inputs"] = std::make_shared<any>(std::move(dtype_inputs));
......
......@@ -44,11 +44,15 @@ if [ ${TASK} == "python_test" ]; then
nosetests3 tests/python/ || exit -1
fi
python -m nose tests/python/ || exit -1
python3 -m nose tests/python/ || exit -1
make cython || exit -1
make cython3 || exit -1
python -m nose tests/python/ || exit -1
python3 -m nose tests/python/ || exit -1
if [ ${TRAVIS_OS_NAME} == "osx" ]; then
python -m nose tests/python/ || exit -1
python3 -m nose tests/python/ || exit -1
else
nosetests tests/python/ || exit -1
nosetests3 tests/python/ || exit -1
fi
exit 0
fi
......@@ -13,7 +13,3 @@ fi
if [ ${TASK} == "lint" ]; then
pip install cpplint 'pylint==1.4.4' 'astroid==1.3.6' --user `whoami`
fi
if [ ! -d dmlc-core ]; then
git clone https://github.com/dmlc/dmlc-core
fi
File mode changed from 100644 to 100755
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment