hls4ml-tutorial icon indicating copy to clipboard operation
hls4ml-tutorial copied to clipboard

HLS model will not compile

Open Sam-Nielsen-Dot opened this issue 2 years ago • 1 comments

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

Sam-Nielsen-Dot avatar Aug 17 '22 12:08 Sam-Nielsen-Dot

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

Kivo0 avatar Oct 07 '22 14:10 Kivo0