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

Missing pugixml.hpp Header File when compling from source #315

Open
zhaiyunfan opened this issue Apr 17, 2024 · 4 comments
Open

Missing pugixml.hpp Header File when compling from source #315

zhaiyunfan opened this issue Apr 17, 2024 · 4 comments

Comments

@zhaiyunfan
Copy link

  • Tool Version: commit: aca8437
  • OS Version: Ubuntu 20.04 LTS x64
  • Frontend Compiler Version: default
  • Simulator: NA

Command Line Used: ../configure --prefix=/opt/panda --enable-flopoco -enable-debug & make

Description of the Bug:
When compiling BambuHLS, I encountered a fatal error stating that the pugixml.hpp header file cannot be found. This suggests that the pugixml framework is missing.

Steps to Reproduce:
Just follow the document from https://panda.deib.polimi.it/?page_id=88

Expected Behavior:
No error

Actual Behavior:
During compilation, the error message fatal error: pugixml.hpp: No such file or directory is encountered, halting the compilation process.

Additional Information:
The temporary solution of copying the pugixml source code to /src/HLS directory suggests that the framework may not be properly included or configured in the build process. Further guidance on resolving this issue would be appreciated.

@zhaiyunfan zhaiyunfan added the bug label Apr 17, 2024
@Ansaya
Copy link
Collaborator

Ansaya commented Apr 17, 2024

Hi, you have not correctly initialized the submodules in the repository. After cloning the repo, launch the following: git submodule update --init, which should solve your issue.
Further, the --enable-debug option will perform a fully unoptimized build, which results in a very slow compilation and execution time. I suggest you use --disable-release instead, which enables debug prints and assertions without affecting execution speed too much.

@zhaiyunfan
Copy link
Author

It works, thank you for your help.
In this case, I use the debug option because I want to make some contribution to the resource-sharing feature. I will try release.

By the way, I am trying to modify the source code but the development document is incomplete, where can I find more documents about development?

@Ansaya
Copy link
Collaborator

Ansaya commented Apr 24, 2024

There is not much documentation for development; it is still a work in progress. I can guide you through if you could share some information on what you'd like to implement.

@zhaiyunfan
Copy link
Author

Thank you very much! We have an idea about resource sharing, aiming to optimize the issue of resource sharing between different layers when using HLS for neural networks. Since the original C++ code is designed using a factory pattern, I encountered some troubles while reading the code.

I would like to know which module or data structure I should focus on if I want to optimize the resource sharing algorithm. Currently, I am puzzled about how your HLS framework identifies shareable substructures from the graph structure.

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

No branches or pull requests

2 participants