Closed DavErrico closed 2 years ago
Hi, did you run the scalarize.sh script before the synthesis script? Example: https://github.com/ferrandi/PandA-bambu/blob/main/examples/onnx/e1_mlp/scalarize.sh
I see that the crash happened on a line with vector instructions, those are not supported by Bambu. So that might be the cause
Hi,
indeed running the scalarize.sh script before the synthesis solves the crash.
I'm looking more deeply to the _e1mlp example and I have noted that it runs the synthesis of https://github.com/ferrandi/PandA-bambu/blob/main/examples/onnx/e1_mlp/e1_mlp.parallel.c
code.
Now, I wonder how this code is obtained. Is it generated starting from the TVM code?
Finally, is it right to run the synthesis of the LLVM IR code directly?
Thank you for your time.
The .parallel.c versions are obtained starting from C code generated by TVM and then annotating regions by hand to exploit a particular architecture (read more about it here https://ieeexplore.ieee.org/document/9350228).
In the examples/onnx folder there are various experiments, on some we synthesized LLVM IR generated by TVM, on some C generated by TVM, on others C generated by TVM and modified with openMP annotations. They should all work (but I haven't tried in the last two years), and they will probably give you different performances.
Depending on what you are interested in, LLVM IR may be the best option or not. It is well supported by Bambu (vector instructions excluded).
I understand, I will investigate then.
Thank you so much.
Hello everyone,
I'm currently new to the framework and I'm attempting to synthesize a neural network model. I'm using the VM with pre-configured version of bambu on Ubuntu 18.04 and I went over the tutorials given on the website without any issue. However, when I launch my project (bambu filename.ll --compiler=I386_CLANG6) using the transformed IR (.ll file) as an input I get compilation errors:
I tried also to execute the scripts given in the onnx example, but it fails anyway because of the same problem.
I have read a comment on this error that is the following:
Do you think that this is the case? I followed the install instruction on the website https://panda.dei.polimi.it/?page_id=88
I do not know how to solve it, I would appreciate if someone could help me. Thank you.
Kind regards, Davide