Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part7a running in containers - Error: "realloc : invalid pointer" #81

Open
cegranger opened this issue Aug 26, 2024 · 0 comments
Open

Comments

@cegranger
Copy link

One of my colleague found this issue when trying to run the part7a model.build() using the containers from the packages of the repo : https://github.com/orgs/fastmachinelearning/packages?repo_name=hls4ml-tutorial.

I was able to reproduce it with a brand new install of vivado 2020.1 in a jupyter/base-notebook image. And I think this can be resolved following the solution from the following post : https://support.xilinx.com/s/article/000034450?language=en_US.

To find the right path for libudev.so.1, I just ran : find / -name "libudev.so.1" 2>/dev/null. And I added the following line to the part7a notebook : os.environ['LD_PRELOAD'] = '/usr/lib/x86_64-linux-gnu/libudev.so.1'.

I tried it in my container with vivado 2020.1 and with another one running the hls4ml-0.8.0-vivado-2019.1 image and I do not get the realloc error anymore.

Also, I think there is a typo in the name of the vivado docker image that is refered in the README.md of the repo since there is no vivado2019.2 for hls4ml 0.8.0.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@cegranger and others