-
Notifications
You must be signed in to change notification settings - Fork 100
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
How to run tests #38
Comments
make check-enzyme should run tests (I'll make a quick readme). |
This is what I get:
|
But if I run things manually then it works:
|
Can you post the output of make check-enzyme VERBOSE=1, I'm wondering what exact command is being run. Offhand, my first guess is there's a file path with a space that isn't being quoted properly. |
Sure:
|
Ah, it wasn't able to find llvm-lit. Do you see a file at the following location or somewhere similar on your machine: /usr/lib/llvm-6/build/utils/lit/lit.py If so, add this to your cmake (with the appropriate path):
|
Unfortunately I don't have any utils subdirectory nor any |
Assuming you're on ubuntu, can you try installing llvm-6-tools and llvm-6-dev ? |
That worked. The packages are called
and I uploaded the test results here: https://gist.github.com/certik/f3202b6bc907481e460084cc19ff9905. Some pass and some fail. |
That makes sense, we stopped testing against LLVM 6 ("officially supporting" / testing versions 7-9) because it wasn't possible to write some tests in a way that was compatible for LLVM 6 and later versions (since there was a change to memcpy where it took an extra argument and a few other things). That said, functionally Enzyme should still work on LLVM 6 (since it was just hard to write tests that were compatible with all versions of LLVM) and skimming through your output that seems to be the case. |
I can upgrade, I only used LLVM 6 since it was already installed. I installed
It could be that LLVM 9 is broken in Ubuntu. So I installed LLVM 8 and reconfigured with:
and that seems to work. Looks like there is only one failure now: https://gist.github.com/certik/3c0482cf7886b92d293342ee41b2e82c Update: that failure was caused by myself, I modified one of the tests to play with it. When I removed my modifications, everything passes:
|
Ah excellent, yeah that failure seemed odd to me, but glad to see it was resolved! |
Thanks! |
Here is how I build Enzyme. How do I execute tests?
The text was updated successfully, but these errors were encountered: