fastmachinelearning / hls4ml-tutorial

Tutorial notebooks for hls4ml
http://fastmachinelearning.org/hls4ml-tutorial/
274 stars 123 forks source link

HLS model will not compile #32

Open Sam-Nielsen-Dot opened 1 year ago

Sam-Nielsen-Dot commented 1 year ago

Hello,

When I am attempting to run the Jupyter tutorial notebooks (using the provided environment), everything works up until the line hls_model.compile() where it produces the exception


Exception Traceback (most recent call last) Input In [13], in <cell line: 1>() ----> 1 hls_model.compile() 2 X_test = np.ascontiguousarray(X_test) 3 y_hls = hls_model.predict(X_test)

File ~\Anaconda3\envs\hls4ml-tutorial\lib\site-packages\hls4ml\model\hls_model.py:534, in HLSModel.compile(self) 532 ret_val = os.system('bash build_lib.sh') 533 if ret_val != 0: --> 534 raise Exception('Failed to compile project "{}"'.format(self.config.get_project_name())) 535 lib_name = 'firmware/{}-{}.so'.format(self.config.get_project_name(), self.config.get_config_value('Stamp')) 536 if self._top_function_lib is not None:

Exception: Failed to compile project "myproject"

Would you happen to know whether this can be rectified? Thanks

Kivo0 commented 1 year ago

which os are you using ? is it windows ? Have you found a workaround or a solution ?