After insert make all -j 16 command we get that output:
`/usr/bin/g++ -c -O3 -msse3 -Wno-unknown-pragmas -funroll-loops -I./mshadow/ -std=c++11 -pthread -fPIC -I/home/eneas/intel/mkl/include -I/usr/include -I/usr/local/include -I/usr/lib/cuda/include -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_MKL=1 -DMSHADOW_USE_CBLAS=0 -DREALTIME_SERVER=1 -o net_cpu.o src/net/net_impl.cpp
In file included from src/net/net_impl-inl.hpp:5:0,
from src/net/net_impl.cpp:4:
src/net/./net.h: In member function ‘virtual void textnet::net::Net::TestAll(std::cxx11::string, int)’:
src/net/./net.h:885:26: error: there are no arguments to ‘accumulate’ that depend on a template parameter, so a declaration of ‘accumulate’ must be available [-fpermissive]
test_loss[i] = accumulate(test_loss_list[i].begin(), test_loss_list[i].end(), 0.0f);
^~~~~~
src/net/./net.h:885:26: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
src/net/./net.h:888:26: error: there are no arguments to ‘accumulate’ that depend on a template parameter, so a declaration of ‘accumulate’ must be available [-fpermissive]
test_loss[i] = accumulate(test_loss_list[i].begin(), test_loss_list[i].end(), 0.0f);
^~~~~~
src/net/./net.h: In instantiation of ‘void textnet::net::Net::TestAll(std::cxx11::string, int) [with xpu = mshadow::cpu; std::cxx11::string = std::cxx11::basic_string]’:
src/net/net_impl.cpp:18:1: required from here
src/net/./net.h:885:36: error: ‘accumulate’ was not declared in this scope
test_loss[i] = accumulate(test_loss_list[i].begin(), test_loss_list[i].end(), 0.0f);
src/net/./net.h:888:36: error: ‘accumulate’ was not declared in this scope
test_loss[i] = accumulate(test_loss_list[i].begin(), test_loss_list[i].end(), 0.0f);
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/net/./net.h: In member function ‘void textnet::net::Net<xpu>::setLogFile() [with xpu = mshadow::cpu]’:
src/net/./net.h:194:14: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(root["log"].asString().c_str(), "a", stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Makefile:118: recipe for target 'net_cpu.o' failed
make: *** [net_cpu.o] Error 1`
After insert
make all -j 16
command we get that output:`/usr/bin/g++ -c -O3 -msse3 -Wno-unknown-pragmas -funroll-loops -I./mshadow/ -std=c++11 -pthread -fPIC -I/home/eneas/intel/mkl/include -I/usr/include -I/usr/local/include -I/usr/lib/cuda/include -DMSHADOW_USE_CUDA=0 -DMSHADOW_USE_MKL=1 -DMSHADOW_USE_CBLAS=0 -DREALTIME_SERVER=1 -o net_cpu.o src/net/net_impl.cpp In file included from src/net/net_impl-inl.hpp:5:0, from src/net/net_impl.cpp:4: src/net/./net.h: In member function ‘virtual void textnet::net::Net::TestAll(std::cxx11::string, int)’:
src/net/./net.h:885:26: error: there are no arguments to ‘accumulate’ that depend on a template parameter, so a declaration of ‘accumulate’ must be available [-fpermissive]
test_loss[i] = accumulate(test_loss_list[i].begin(), test_loss_list[i].end(), 0.0f);
^::TestAll(std:: cxx11::string, int) [with xpu = mshadow::cpu; std::cxx11::string = std::cxx11::basic_string]’:
src/net/net_impl.cpp:18:1: required from here
src/net/./net.h:885:36: error: ‘accumulate’ was not declared in this scope
test_loss[i] = accumulate(test_loss_list[i].begin(), test_loss_list[i].end(), 0.0f);
~~~~~ src/net/./net.h:885:26: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated) src/net/./net.h:888:26: error: there are no arguments to ‘accumulate’ that depend on a template parameter, so a declaration of ‘accumulate’ must be available [-fpermissive] test_loss[i] = accumulate(test_loss_list[i].begin(), test_loss_list[i].end(), 0.0f); ^~~~~~ src/net/./net.h: In instantiation of ‘void textnet::net::Net