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

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

Open
neulxf opened this issue Dec 7, 2023 · 10 comments
Open

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

neulxf opened this issue Dec 7, 2023 · 10 comments

Comments

@neulxf
Copy link

neulxf commented Dec 7, 2023

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

@neulxf
Copy link
Author

neulxf commented Dec 7, 2023

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

@tancheng
Copy link
Owner

tancheng commented Dec 7, 2023

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

@neulxf
Copy link
Author

neulxf commented Dec 8, 2023

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

@tancheng
Copy link
Owner

tancheng commented Dec 9, 2023

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

@neulxf
Copy link
Author

neulxf commented Dec 9, 2023

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

@tancheng
Copy link
Owner

tancheng commented Dec 9, 2023

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.

@neulxf
Copy link
Author

neulxf commented Dec 9, 2023 via email

@neulxf
Copy link
Author

neulxf commented Dec 9, 2023

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

@neulxf
Copy link
Author

neulxf commented Dec 10, 2023

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

@tancheng
Copy link
Owner

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!

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