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

Is there a tutorial about aie environment configuration? #218

Open
lxy-littlechai opened this issue Oct 22, 2024 · 2 comments
Open

Is there a tutorial about aie environment configuration? #218

lxy-littlechai opened this issue Oct 22, 2024 · 2 comments

Comments

@lxy-littlechai
Copy link

Hi, I'm new to this project, and I have some troubles when compiling aie.cpp. Could you kindly tell me a tutorial or how to configure the relevant environment about aie especially the header and libraries path?

@konstantinschwarz
Copy link
Collaborator

Hi and welcome!
Which aie.cpp are you referring to exactly? Are you trying to build LLVM? You need to configure the build using cmake, and then use ninja/make to build. Some minimal cmake configuration could look like:

mkdir build;
cd build;
cmake -G Ninja -C ../clang/cmake/caches/Peano-AIE.cmake ../llvm

You can then build clang using ninja clang.
I hope this helps!

@lxy-littlechai
Copy link
Author

Hi and welcome! Which aie.cpp are you referring to exactly? Are you trying to build LLVM? You need to configure the build using cmake, and then use ninja/make to build. Some minimal cmake configuration could look like:

mkdir build;
cd build;
cmake -G Ninja -C ../clang/cmake/caches/Peano-AIE.cmake ../llvm

You can then build clang using ninja clang. I hope this helps!

I have successfully built the project. However, I don't know how to correctly compile the cpp file, since I'm confused about the including path to support AIE Intrinsic API. It should use the environment of Vitis? Could you kindly tell me how to configure the include and library environment? Thanks.

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