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

Compilation n2d2 : 'runtime_error' is not a member of 'std' #114

Closed rattokiller closed 2 years ago

rattokiller commented 2 years ago

Hi,

I am creating an installation file and a Dockerfile

during my n2d2 install I found myself during 'make' error: 'runtime_error' is not a member of 'std

i solved including manually in Histogram.hpp

in Histogram.hpp : #include <stdexcept>

What system or build version do you use to build n2d2?

Cheers, Filippo

cmoineau commented 2 years ago

Hello Filippo, Thanks for reporting us this issue, a fix was already deployed in an internal vesion and should be soon published on GitHub.

The fix consist in adding this line in Histogram.hpp :

#ifndef MLAS_NO_EXCEPTION
#include <stdexcept>
#endif

I will keep you updated when the fix is available.

Cheers, Cyril

cmoineau commented 2 years ago

Fixed in de1a229ebc51cd1d5ed5e56d844545afe0c7fe7f.