Xilinx / llvm-aie

Fork of LLVM to support AMD AIEngine processors
Other
107 stars 12 forks source link

Is there a tutorial about aie environment configuration? #218

Open lxy-littlechai opened 1 month ago

lxy-littlechai commented 1 month ago

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 commented 3 weeks ago

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 commented 3 weeks ago

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.