fastmachinelearning / hls4ml

Machine learning on FPGAs using HLS
https://fastmachinelearning.org/hls4ml
Apache License 2.0
1.24k stars 402 forks source link

Code no longer works after updating from pip install hls4ml to main branch #745

Closed vandenBergArthur closed 1 year ago

vandenBergArthur commented 1 year ago

Hi all,

For the past couple of months, I've been working with hls4ml using the conda environment that is created for the tutorial (so the environment.yml file). Everything was fine until yesterday, when I finally noticed that the hls4ml version from pip is very outdated, so I uninstalled hls4ml with pip uninstall hls4ml and I installed the main branch like this: pip install git+https://github.com/fastmachinelearning/hls4ml@main.

But now my code no longer works:

I have tried the following things to solve the problem:

Any help would be very appreciated because at this moment, I am stuck and I don't know what to do anymore...

Ps:

vloncar commented 1 year ago

Compilation relies on using the host's g++ compiler. Maybe your conda environment has something extra? I tried creating a new empty environment based on python 3.8 and just installed hls4ml from main there, it pulled it's dependencies and it works. So the issue must be someplace else.

jmduarte commented 1 year ago

@vandenBergArthur if you post a script that can reproduce your issue (e.g. compiling a simple model), we can try to help resolve it, but otherwise we don't know how to help.

vandenBergArthur commented 1 year ago

Compilation relies on using the host's g++ compiler. Maybe your conda environment has something extra? I tried creating a new empty environment based on python 3.8 and just installed hls4ml from main there, it pulled it's dependencies and it works. So the issue must be someplace else.

I don't know what changed, but I tried this again and now it works after I manually added pydot & graphviz. Thanks!