Automatic location of mxnet library

parent aa383e29
MXNET_PATH=$(python -c "import mxnet; print(mxnet.__file__)")
MXNET_FOLDER=${MXNET_PATH::-11}
echo $MXNET_FOLDER
if [ ! -f $MXNET_FOLDER/libmxnet.so ]; then
echo "libmxnet.so not found at default location" $MXNET_FOLDER
echo "It should be there if the python mxnet package is installed"
echo "Either fix the installation, or adapt the ./build.sh script to locate libmxnet.so correctly"
exit 1
fi
rm -rf target
java -jar ../embedded-montiarc-emadl-generator-0.2.10-jar-with-dependencies.jar -m src/emadl/models/ -r cNNCalculator.Connector -o target -b MXNET
......@@ -5,6 +16,5 @@ rm -rf build
mkdir build && cd build
echo "Building DigitClassifier.."
cmake ..
#cp -r /home/christopher/Documents/Master/Semester2/Praktikum/mxnet/include/mxnet/ ../target/
cmake -D MXNET_PATH=$MXNET_FOLDER/libmxnet.so ..
make
\ No newline at end of file
......@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5)
project(DigitCalculator CXX)
set(CMAKE_CXX_STANDARD 11)
option(MXNET_PATH "Path to libmxnet.so", "/usr/local/lib/python2.7/dist-packages/mxnet/libmxnet.so")
option(MXNET_PATH "Path to libmxnet.so")
add_executable(DigitCalculator DigitCalculator.cpp)
......
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