-
Notifications
You must be signed in to change notification settings - Fork 31
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
Every example fails with an Assertion Error #43
Comments
Hi Marius. Thanks for posting the Issue. Do the tests of the library compile? |
No the library tests did not work either I think.... I used the following code to test: #include <iostream>
#include <easy/jit.h>
using namespace std;
static void EASY_JIT_EXPOSE kernel(const int a, const int b, int * const res)
{
for(int x = 1; x < a; x++)
{
for(int y = 1; y < b; y++)
{
*res += a*b - b;
}
}
}
int main(int argc, char **argv)
{
int res = 0;
kernel(1000, 250000, &res);
using namespace std::placeholders;
auto kernel_opt = easy::jit(kernel, 1000, 250000, _1);
kernel_opt(&res);
cout << res << endl;
return 0;
}
|
It works for me in my local configuration. I created a pull request where I added the code as a new test to see what the Continuous Integration says. What version of the llvm are you using? |
As I am using a pretty old Debian System, I build a custom LLVM 6.0.1 |
That's strange.
Could you try to send me the generated CMakeCache.txt ?
And also compile the previous code that you send with the options -S
-emit-llvm to obtain an .ll and send it to me. The command line should be
something like "clang -S -emit-llvm -I /easyjitdir/include issue_43.cpp -O2
-o issue_43.ll" .
Thanks for the help!
…On Thu, 21 Feb 2019 at 15:37, Marius Messerschmidt ***@***.***> wrote:
As I am using a pretty old Debian System, I build a custom LLVM 6.0.1
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA5536WClF_dUFqcTU2ZeIijuuAlcrRlks5vPq8-gaJpZM4bG0Vf>
.
|
Sorry that it took so long, but here are the files that you requested. (I had to gzip the LLVM file, as GitHub would reject it otherwise) |
is there still activity in this? |
Sorry for the delay @mame98 . I wasn't able to reproduce it, and I did not have enough time to test with more configurations to see if I could trigger the error. |
I am currently experimenting with this tool / library, but every example that I want to try fails with the following assertion error:
Since I have no Idea about the internals of this project I do not know what to do. Do you have any idea whats wrong (or what I am missing?)?
Additional Information:
Happens during the call of
easy::jit
Command used to compile the tests:
clang++ --std=c++14 test.cpp -Xclang -load -Xclang /path/to/easy-just-in-time/build/bin/EasyJitPass.so -I /path/to/easy-just-in-time/include -L /path/to/easy-just-in-time/build/bin -lEasyJitRuntime -stdlib=libc++
The text was updated successfully, but these errors were encountered: