Skip to content

Instantly share code, notes, and snippets.

@viktor-ferenczi
Created July 18, 2015 13:48
Show Gist options
  • Save viktor-ferenczi/acfc91d20bf0af8efde9 to your computer and use it in GitHub Desktop.
Save viktor-ferenczi/acfc91d20bf0af8efde9 to your computer and use it in GitHub Desktop.
Compiles with ps-lite, but missing symbol on importing library
fviktor@ml:~/dev/cxxnet$ ./build_ps.sh
Cloning into 'ps-lite'...
remote: Counting objects: 859, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 859 (delta 0), reused 0 (delta 0), pack-reused 847
Receiving objects: 100% (859/859), 274.49 KiB | 0 bytes/s, done.
Resolving deltas: 100% (565/565), done.
Checking connectivity... done.
Install third-party libraries for PS
configure.ac:55: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
m4/libtool.m4:1022: _LT_SYS_MODULE_PATH_AIX is expanded from...
m4/libtool.m4:4170: _LT_LINKER_SHLIBS is expanded from...
m4/libtool.m4:5253: _LT_LANG_C_CONFIG is expanded from...
m4/libtool.m4:138: _LT_SETUP is expanded from...
m4/libtool.m4:67: LT_INIT is expanded from...
m4/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
configure.ac:55: the top level
configure.ac:55: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
m4/libtool.m4:4170: _LT_LINKER_SHLIBS is expanded from...
m4/libtool.m4:5253: _LT_LANG_C_CONFIG is expanded from...
m4/libtool.m4:138: _LT_SETUP is expanded from...
m4/libtool.m4:67: LT_INIT is expanded from...
m4/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
configure.ac:55: the top level
configure.ac:55: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2661: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2678: AC_LINK_IFELSE is expanded from...
m4/libtool.m4:1022: _LT_SYS_MODULE_PATH_AIX is expanded from...
m4/libtool.m4:5360: _LT_LANG_CXX_CONFIG is expanded from...
m4/libtool.m4:785: _LT_LANG is expanded from...
m4/libtool.m4:768: LT_LANG is expanded from...
m4/libtool.m4:796: _LT_LANG_DEFAULT_CONFIG is expanded from...
m4/libtool.m4:138: _LT_SETUP is expanded from...
m4/libtool.m4:67: LT_INIT is expanded from...
m4/libtool.m4:102: AC_PROG_LIBTOOL is expanded from...
configure.ac:55: the top level
libtool: install: warning: relinking `libprotoc.la'
configure: WARNING: libsodium is needed for CURVE security
configure: WARNING: libgssapi_krb5 is needed for GSSAPI security
Compile PS
make: Entering directory `/home/fviktor/dev/cxxnet/ps-lite'
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/assign_op.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/data.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/filter.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/heartbeat.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/node.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/param.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/range.proto
/home/fviktor/dev/cxxnet/ps-lite/deps/bin/protoc --cpp_out=./src --proto_path=./src src/proto/task.proto
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/proto/assign_op.pb.o src/proto/assign_op.pb.cc >build/proto/assign_op.pb.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/proto/data.pb.o src/proto/data.pb.cc >build/proto/data.pb.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/proto/filter.pb.o src/proto/filter.pb.cc >build/proto/filter.pb.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/proto/heartbeat.pb.o src/proto/heartbeat.pb.cc >build/proto/heartbeat.pb.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/proto/data.pb.cc -o build/proto/data.pb.o
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/proto/filter.pb.cc -o build/proto/filter.pb.o
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/proto/assign_op.pb.cc -o build/proto/assign_op.pb.o
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/proto/heartbeat.pb.cc -o build/proto/heartbeat.pb.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/proto/node.pb.o src/proto/node.pb.cc >build/proto/node.pb.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/proto/node.pb.cc -o build/proto/node.pb.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/proto/param.pb.o src/proto/param.pb.cc >build/proto/param.pb.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/proto/range.pb.o src/proto/range.pb.cc >build/proto/range.pb.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/proto/param.pb.cc -o build/proto/param.pb.o
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/proto/range.pb.cc -o build/proto/range.pb.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/proto/task.pb.o src/proto/task.pb.cc >build/proto/task.pb.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/proto/task.pb.cc -o build/proto/task.pb.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/ps_main.o src/ps_main.cc >build/ps_main.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/ps_main.cc -o build/ps_main.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/base/threadpool.o src/base/threadpool.cc >build/base/threadpool.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/base/threadpool.cc -o build/base/threadpool.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/filter/filter.o src/filter/filter.cc >build/filter/filter.d
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/parameter/parameter.o src/parameter/parameter.cc >build/parameter/parameter.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/parameter/parameter.cc -o build/parameter/parameter.o
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/filter/filter.cc -o build/filter/filter.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/system/env.o src/system/env.cc >build/system/env.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/system/env.cc -o build/system/env.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/system/executor.o src/system/executor.cc >build/system/executor.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/system/executor.cc -o build/system/executor.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/system/manager.o src/system/manager.cc >build/system/manager.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/system/manager.cc -o build/system/manager.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/system/message.o src/system/message.cc >build/system/message.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/system/message.cc -o build/system/message.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/system/postoffice.o src/system/postoffice.cc >build/system/postoffice.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/system/postoffice.cc -o build/system/postoffice.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/system/remote_node.o src/system/remote_node.cc >build/system/remote_node.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/system/remote_node.cc -o build/system/remote_node.o
g++ -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -std=c++0x -MM -MT build/system/van.o src/system/van.cc >build/system/van.d
g++ -std=c++11 -msse2 -Wall -finline-functions -O3 -ggdb -I./src -I/home/fviktor/dev/cxxnet/ps-lite/deps/include -c src/system/van.cc -o build/system/van.o
ar crv build/libps_main.a build/ps_main.o
a - build/ps_main.o
ar crv build/libps.a build/proto/assign_op.pb.o build/proto/data.pb.o build/proto/filter.pb.o build/proto/heartbeat.pb.o build/proto/node.pb.o build/proto/param.pb.o build/proto/range.pb.o build/proto/task.pb.o build/ps_main.o build/base/threadpool.o build/filter/filter.o build/parameter/parameter.o build/system/env.o build/system/executor.o build/system/manager.o build/system/message.o build/system/postoffice.o build/system/remote_node.o build/system/van.o
a - build/proto/assign_op.pb.o
a - build/proto/data.pb.o
a - build/proto/filter.pb.o
a - build/proto/heartbeat.pb.o
a - build/proto/node.pb.o
a - build/proto/param.pb.o
a - build/proto/range.pb.o
a - build/proto/task.pb.o
a - build/ps_main.o
a - build/base/threadpool.o
a - build/filter/filter.o
a - build/parameter/parameter.o
a - build/system/env.o
a - build/system/executor.o
a - build/system/manager.o
a - build/system/message.o
a - build/system/postoffice.o
a - build/system/remote_node.o
a - build/system/van.o
make: Leaving directory `/home/fviktor/dev/cxxnet/ps-lite'
Cloning into 'rabit'...
remote: Counting objects: 2671, done.
remote: Total 2671 (delta 0), reused 0 (delta 0), pack-reused 2671
Receiving objects: 100% (2671/2671), 777.64 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1738/1738), done.
Checking connectivity... done.
Cloning into 'mshadow'...
remote: Counting objects: 2927, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 2927 (delta 3), reused 0 (delta 0), pack-reused 2912
Receiving objects: 100% (2927/2927), 1020.65 KiB | 1.47 MiB/s, done.
Resolving deltas: 100% (2005/2005), done.
Checking connectivity... done.
Cloning into 'dmlc-core'...
remote: Counting objects: 2125, done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 2125 (delta 23), reused 0 (delta 0), pack-reused 2065
Receiving objects: 100% (2125/2125), 415.51 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1288/1288), done.
Checking connectivity... done.
make: Entering directory `/home/fviktor/dev/cxxnet/ps-lite'
make: Nothing to be done for `all'.
make: Leaving directory `/home/fviktor/dev/cxxnet/ps-lite'
g++-4.8 -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -o layer_cpu.o src/layer/layer_impl.cpp
g++-4.8 -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -o updater_cpu.o src/updater/updater_impl.cpp
g++-4.8 -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -o nnet_cpu.o src/nnet/nnet_impl.cpp
g++-4.8 -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -o main.o src/cxxnet_main.cpp
g++-4.8 -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -o nnet_ps_server.o src/nnet/nnet_ps_server.cpp
g++-4.8 -std=c++0x -c -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -o data.o src/io/data.cpp
nvcc -c -o layer_gpu.o --use_fast_math -g -O3 -ccbin g++-4.8 --std=c++11 -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 " src/layer/layer_impl.cu
./ps-lite/deps/include/glog/logging.h(348): warning: using-declaration ignored -- it refers to the current namespace
./ps-lite/deps/include/glog/logging.h(352): warning: using-declaration ignored -- it refers to the current namespace
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
nvcc -c -o updater_gpu.o --use_fast_math -g -O3 -ccbin g++-4.8 --std=c++11 -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 " src/updater/updater_impl.cu
./ps-lite/deps/include/glog/logging.h(348): warning: using-declaration ignored -- it refers to the current namespace
./ps-lite/deps/include/glog/logging.h(352): warning: using-declaration ignored -- it refers to the current namespace
nvcc -c -o nnet_gpu.o --use_fast_math -g -O3 -ccbin g++-4.8 --std=c++11 -Xcompiler "-DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 " src/nnet/nnet_impl.cu
./ps-lite/deps/include/glog/logging.h(348): warning: using-declaration ignored -- it refers to the current namespace
./ps-lite/deps/include/glog/logging.h(352): warning: using-declaration ignored -- it refers to the current namespace
./ps-lite/deps/include/glog/logging.h(348): warning: using-declaration ignored -- it refers to the current namespace
./ps-lite/deps/include/glog/logging.h(352): warning: using-declaration ignored -- it refers to the current namespace
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
./ps-lite/deps/include/glog/logging.h(348): warning: using-declaration ignored -- it refers to the current namespace
./ps-lite/deps/include/glog/logging.h(352): warning: using-declaration ignored -- it refers to the current namespace
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cd dmlc-core; make libdmlc.a config=/home/fviktor/dev/cxxnet/config.mk; cd /home/fviktor/dev/cxxnet
make[1]: Entering directory `/home/fviktor/dev/cxxnet/dmlc-core'
g++-4.8 -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -o line_split.o src/io/line_split.cc
g++-4.8 -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -o recordio_split.o src/io/recordio_split.cc
./ps-lite/deps/include/glog/logging.h(348): warning: using-declaration ignored -- it refers to the current namespace
./ps-lite/deps/include/glog/logging.h(352): warning: using-declaration ignored -- it refers to the current namespace
g++-4.8 -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -o input_split_base.o src/io/input_split_base.cc
g++-4.8 -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -o io.o src/io.cc
g++-4.8 -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -o local_filesys.o src/io/local_filesys.cc
g++-4.8 -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -o data.o src/data.cc
g++-4.8 -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -o recordio.o src/recordio.cc
g++-4.8 -c -O3 -Wall -msse2 -Wno-unknown-pragmas -Iinclude -std=c++0x -fopenmp -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -o config.o src/config.cc
ar cr libdmlc.a line_split.o recordio_split.o input_split_base.o io.o local_filesys.o data.o recordio.o config.o
make[1]: Leaving directory `/home/fviktor/dev/cxxnet/dmlc-core'
g++-4.8 -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -o bin/cxxnet.ps layer_cpu.o updater_cpu.o nnet_cpu.o main.o nnet_ps_server.o data.o layer_gpu.o updater_gpu.o nnet_gpu.o dmlc-core/libdmlc.a ps-lite/build/libps.a -pthread -lm -lcudart -lcublas -lcurand -L/usr/local/cuda-6.5/lib64 -lopenblas -lrt `pkg-config --libs opencv` -L/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -ljpeg -L./ps-lite/deps/lib -lglog -lprotobuf -lgflags -lzmq -lcityhash -llz4
g++-4.8 -DMSHADOW_FORCE_STREAM -Wall -g -O3 -I./mshadow/ -I./dmlc-core/include -I./ps-lite/deps/include -fPIC -msse3 -funroll-loops -Wno-unused-parameter -Wno-unknown-pragmas -I/usr/local/cuda-6.5/include -DMSHADOW_USE_CBLAS=1 -DMSHADOW_USE_MKL=0 -DMSHADOW_RABIT_PS=0 -DMSHADOW_DIST_PS=1 -std=c++11 -I./ps-lite/src -I./ps-lite/third_party/include -fPIC -DDMLC_USE_HDFS=0 -DDMLC_USE_S3=0 -DDMLC_USE_GLOG=1 -DCXXNET_USE_OPENCV=1 -DCXXNET_USE_OPENCV_DECODER=1 -fopenmp -I/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -shared -o wrapper/libcxxnetwrapper.so wrapper/cxxnet_wrapper.cpp layer_cpu.o updater_cpu.o nnet_cpu.o main.o nnet_ps_server.o data.o dmlc-core/libdmlc.a layer_gpu.o updater_gpu.o nnet_gpu.o -pthread -lm -lcudart -lcublas -lcurand -L/usr/local/cuda-6.5/lib64 -lopenblas -lrt `pkg-config --libs opencv` -L/home/fviktor/dev/cudnn-6.5-linux-x64-v2 -ljpeg -L./ps-lite/deps/lib -lglog -lprotobuf -lgflags -lzmq -lcityhash -llz4
fviktor@ml:~/dev/cxxnet$
@viktor-ferenczi
Copy link
Author

My config.mk:

#-----------------------------------------------------
#  cxxnet: the configuration compile script
#
#  This is the default configuration setup for cxxnet
#  If you want to change configuration, do the following steps:
#
#  - copy this file to the root folder
#  - modify the configuration you want
#  - type make or make -j n for parallel build
#----------------------------------------------------

# choice of compiler
export CC = gcc-4.8
export CXX = g++-4.8
export NVCC = nvcc

# whether use CUDA during compile
USE_CUDA = 1

# add the path to CUDA libary to link and compile flag
# if you have already add them to enviroment variable, leave it as NONE
USE_CUDA_PATH = /usr/local/cuda-6.5

# whether use opencv during compilation
# you can disable it, however, you will not able to use
# imbin iterator
USE_OPENCV = 1
USE_OPENCV_DECODER = 1
# whether use CUDNN R3 library
USE_CUDNN = 0
# add the path to CUDNN libary to link and compile flag
# if you do not need that, or do not have that, leave it as NONE
USE_CUDNN_PATH = /home/fviktor/dev/cudnn-6.5-linux-x64-v2
# whether to build caffe converter
USE_CAFFE_CONVERTER = 0
CAFFE_ROOT =
CAFFE_INCLUDE =
CAFFE_LIB =
#
# choose the version of blas you want to use
# can be: mkl, blas, atlas, openblas
USE_STATIC_MKL = NONE
USE_BLAS = openblas
#
# add path to intel libary, you may need it
# for MKL, if you did not add the path to enviroment variable
#
USE_INTEL_PATH = NONE

# whether compile with parameter server
USE_DIST_PS = 1
PS_PATH = ./ps-lite
PS_THIRD_PATH = NONE

# whether compile with rabit
USE_RABIT_PS = 0
RABIT_PATH = rabit

# use openmp iterator
USE_OPENMP_ITER = 1
# the additional link flags you want to add
ADD_LDFLAGS = -ljpeg

# the additional compile flags you want to add
ADD_CFLAGS =
#
# If use MKL, choose static link automaticly to fix python wrapper
#
ifeq ($(USE_BLAS), mkl)
    USE_STATIC_MKL = 1
endif

#------------------------
# configuration for DMLC
#------------------------
# whether use HDFS support during compile
# this will allow cxxnet to directly save/load model from hdfs
USE_HDFS = 0

# whether use AWS S3 support during compile
# this will allow cxxnet to directly save/load model from s3
USE_S3 = 0

# path to libjvm.so
LIBJVM=$(JAVA_HOME)/jre/lib/amd64/server
USE_GLOG = 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment