tancheng/mlir-cgra

CustomizedRuntime-4.cpp:105:2: error: expected unqualified-id

Opened this issue · 10 comments

Hello!
When I follow the instructions in the README and run the demo, there are no errors. However, when testing MiniLM and running sh script4x4.sh, the following error occurs.
image
image

I get the reason, the default python is python2.7, and we need to change it to python3.
But occur new error:
image

Hi neulxf, seems the lib is not linked well. Did you use this to compile.

Yes, I used the given docker. I found the mlir-cgrais old, so I executed the git pull in mlir-cgra
I did not change the source code, and did not rebuild anything

How about the other tests? the one inside the demo folder? Give me some time, I will also try it out.

Thanks! The Demo is success, MiniLM is wrong, and Sentence-BERT spent hours with no results.

BTW, docker might be slow with limited ram provided. Though the local installation is error-prone in terms of versions, I still recommend that. Anyways, I will try the docker.

I built the project by myself but met the same error.
I pass the error by adding -L in front of ../../../../llvm-project/build/lib/libmlir_c_runner_utils.so.
image
But occur new error:
image

Thanks! I passed the error, I found the miss mlir_c_runner_utils.dir/CRunnerUtils.cpp.o file, and added the path to script4x4.sh

clang++-12 main.cpp 11-model-4.o 12-accel-4.o /home/workspace/tools/llvm-project/build/tools/mlir/lib/ExecutionEngine/CMakeFiles/mlir_c_runner_utils.dir/CRunnerUtils.cpp.o -L../../../../llvm-project/build/lib/libmlir_c_runner_utils.so  CustomizedRuntime-4.cpp -I../../../sim/ ../../../sim/*.cpp -o simulate4

And get the result. It looks like it should be right.
image

Hi neulxf,

Thanks for the fix. I did remember I have some comments in one of the script mentioning we need to set some env variable to include that path. But I can't find them in any of the script now... Let's leave this issue open to help the others.

Thank you!