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

Bump LLVM and GPUCompiler versions + related fixes #82

Merged
merged 8 commits into from
Oct 8, 2024
Merged

Conversation

gbaraldi
Copy link
Member

@gbaraldi gbaraldi commented Sep 11, 2024

The fixes entail
Drop abi_call for a plain invoke call
Change to use string api for pass manager
Drop support for versions before 1.10

1.11 still segfaults so I'm taking a further look
1.11 passes tests

Drop abi_call for a plain invoke call
Change to use string api for pass manager
Drop support for versions before 1.10
@@ -93,12 +93,28 @@ Find all static allocation sites in the provided LLVM IR.

This function modifies the LLVM module in-place, effectively trashing it.
"""
function find_allocs!(mod::LLVM.Module, meta; ignore_throw=true)
function find_allocs!(mod::LLVM.Module, meta, entry_name::String; ignore_throw=true, invoke_entry=false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you document what invoke_entry does?

@topolarity
Copy link
Member

Looking pretty good, but I'd like to ideally get nightly working:

[91723] signal 11 (1): Segmentation fault
in expression starting at /home/topolarity/repos/AllocCheck/test/runtests.jl:181
_ZNK4llvm11LLVMContext14getOptPassGateEv at /home/topolarity/repos/julia/usr/bin/../lib/libLLVM.so.18.1jl (unknown line)
unknown function (ip: (nil))
Allocations: 24540140 (Pool: 24539670; Big: 470); GC: 18
ERROR: Package AllocCheck errored during testing (received signal: 11)

@ExpandingMan
Copy link

This bound has been holding a lot back for me. It's been two weeks, any chance you can merge and deal with nightly later?

These are a simple rename of the `gc_pool_alloc_*` functions we had
before.
@topolarity
Copy link
Member

I was able to most of nightly working, thankfully 👍

Bug for the skipped test is in #84

Copy link
Member

@topolarity topolarity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gbaraldi - We'll have to follow-up to add the docs and fix the lingering segfault, but let's get this in for now.

@topolarity topolarity merged commit 5f77c7f into main Oct 8, 2024
5 checks passed
@topolarity topolarity deleted the gb/misc-fixes branch October 8, 2024 05:27
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

Successfully merging this pull request may close these issues.

Cannot use package on v1.11-rc2 Incompatible with its own Dependency
3 participants