-
Notifications
You must be signed in to change notification settings - Fork 683
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
LLVM unit tests #324
base: master
Are you sure you want to change the base?
LLVM unit tests #324
Conversation
I don't see the Rust code to generate those tests. Not sure if I botched the explanation, your code is still in progress or you forgot to check it in or, but the tests are one part. The other part is Rust code: for each file there should be a rust unit test (generated by extending the existing macro that generates unit tests) to verify that .ll match LLVM bitcode generated by the compiler |
@vosen Yep, still working on that part. Just wanted the .ll files committed |
13d308c
to
8692956
Compare
8692956
to
b6a03d2
Compare
Okay, the tests seem to be working individually, e.g. I'm thinking there is some kind of memory leak, but I haven't been able to find it. Perhaps your trained eyes see it quicker @vosen |
I'm not at a computer right now, but I suspect LLVMParseBitcode2. Try
LLVMParseBitcodeInContext2.
LLVM C API has a bunch of those function which don't take an explicit
context parameter and use some sort of default global context. That
explodes when mixed with code that uses explicit context (like ZLUDA).
It's a horrible default and I was bitten by it previously
śr., 5 lut 2025, 16:32 użytkownik Joëlle van Essen ***@***.***>
napisał:
… Okay, the tests seem to be working individually, e.g. cargo test -p ptx
-- ::add_llvm. However, when running cargo test -p ptx -- llvm --nocapture
I can see that it only runs a few tests and then fails with SIGSEGV or
SIGABRT.
I'm thinking there is some kind of memory leak, but I haven't been able to
find it. Perhaps your trained eyes see it quicker @vosen
<https://github.com/vosen>
—
Reply to this email directly, view it on GitHub
<#324 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJGQ2EKCKICFWFB32AILRL2OIVILAVCNFSM6AAAAABVHOKEYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZXGI2TKMBWGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@vosen That was exactly it, good catch. All tests succeed, as expected (the Currently, when the assertion fails it looks like this:
These can be copied and |
Marked this as ready but I just realized I forgot the following point:
Will do that soon. |
#312