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

Chess issue with absolute path link_with | _include _file #1120

Open
Abhishek-Varma opened this issue Mar 12, 2024 · 0 comments
Open

Chess issue with absolute path link_with | _include _file #1120

Abhishek-Varma opened this issue Mar 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Abhishek-Varma
Copy link
Contributor

Error :-

WorkersError in "/home/user/mlir-aie/reference_designs/ipu-xrt/matrix_multiplication/build/aie.mlir.prj/core_0_2.bcf" 
line 41, column 15: syntax error

Steps to reproduce (assuming you are inside mlir-aie's cloned repo) :-

  1. Modify this line with @core(compute_tile2, "/home/user/mlir-aie/reference_designs/ipu-xrt/matrix_multiplication/build/mm.o")
  2. cd reference_designs/ipu-xrt/matrix_multiplication/
  3. mkdir -p build
  4. python3 aie2.py > build/aie.mlir
  5. cd build && xchesscc_wrapper aie2 -I /proj/xbuilds/SWIP/2023.2_1013_2256/installs/lin64/Vitis/2023.2/aietools/include -DBIT_WIDTH=8 -c ../mm.cc -o mm.o
  6. aiecc.py -v --aie-generate-cdo --no-compile-host --xclbin-name=final.xclbin \ --aie-generate-ipu --ipu-insts-name=insts.txt aie.mlir

The above set of steps would give you the error being reported.

Now, to further narrow it down, run the following :-

xchesscc_wrapper aie2 +w /home/user/mlir-aie/reference_designs/ipu-xrt/matrix_multiplication/build/aie.mlir.prj/work \
   -d -f /home/user/mlir-aie/reference_designs/ipu-xrt/matrix_multiplication/build/aie.mlir.prj/input.o mm.o \
   +l /home/user/mlir-aie/reference_designs/ipu-xrt/matrix_multiplication/build/aie.mlir.prj/core_0_2.bcf -o ./core_0_2.elf

You'd see the same error. The fix, while being addressed, can be tested with the above single command itself and then later on be tested on the above 1-6 steps to confirm XCLBin's generation.

If you go ahead and simply change the content of /home/user/mlir-aie/reference_designs/ipu-xrt/matrix_multiplication/build/aie.mlir.prj/core_0_2.bcf by removing the absolute path of mm.o and just keeping "mm.o" - it'd run!

Summary with core*.bcf's content :-

  1. WORKS -
_include _file mm.o
  1. DOESN'T WORK -
_include _file /some/absolute/path/to/mm.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants