CEA-LIST / N2D2

N2D2 is an open source CAD framework for Deep Neural Network simulation and full DNN-based applications building.
Other
146 stars 36 forks source link

Error in Build process #23

Closed acharyaR closed 5 years ago

acharyaR commented 5 years ago

During the build process I'm getting the following

/N2D2-master/src/DeepNet.cpp: In member function ‘void N2D2::DeepNet::cTicks(N2D2::Time_T, N2D2::Time_T, N2D2::Time_T, bool)’: /home/lonewalker/NN/N2D2-master/src/DeepNet.cpp:2068:13: error: variable ‘itBegin’ set but not used [-Werror=unused-but-set-variable] itBegin = mLayers.begin(), ^~~ /home/lonewalker/NN/N2D2-master/src/DeepNet.cpp: In member function ‘void N2D2::DeepNet::initializeCMonitors(unsigned int)’: /home/lonewalker/NN/N2D2-master/src/DeepNet.cpp:2157:5: error: variable ‘itBegin’ set but not used [-Werror=unused-but-set-variable] itBegin = mLayers.begin(), ^~~ cc1plus: all warnings being treated as errors CMakeFiles/N2D2-OS.dir/build.make:3302: recipe for target 'CMakeFiles/N2D2-OS.dir/src/DeepNet.cpp.o' failed make[2]: [CMakeFiles/N2D2-OS.dir/src/DeepNet.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/N2D2-OS.dir/all' failed make[1]: [CMakeFiles/N2D2-OS.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

olivierbichler-cea commented 5 years ago

Hello, This will be fixed in the next commit. You can safely remove the unused variables.