Skip to content

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

Open
@cegranger

Description

@cegranger

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions