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

ORC does not honor the --entry-function flag #49250

Closed
cota opened this issue Apr 9, 2021 · 4 comments
Closed

ORC does not honor the --entry-function flag #49250

cota opened this issue Apr 9, 2021 · 4 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla orcjit

Comments

@cota
Copy link
Contributor

cota commented Apr 9, 2021

Bugzilla Link 49906
Resolution FIXED
Resolved on Apr 13, 2021 11:40
Version trunk
OS Linux
Attachments rsqrt lli example with @entry function
CC @AlexDenisov,@joker-eph,@lhames

Extended Description

$ bin/lli -jit-kind=mcjit --entry-function=entry --mattr="avx512bw" --dlopen=$(pwd)/lib/libmlir_c_runner_utils.so rsqrt.lli
( 0.125, 0.25, 0.5, 1, 2, 4, 8, 16 )
( 2.82764, 1.99951, 1.41382, 0.999756, 0.706909, 0.499878, 0.353455, 0.249939 )

$ bin/lli -jit-kind=orc --entry-function=entry --mattr="avx512bw" --dlopen=$(pwd)/lib/libmlir_c_runner_utils.so rsqrt.lli
bin/lli: Symbols not found: [ main ]

@cota
Copy link
Contributor Author

cota commented Apr 9, 2021

assigned to @weliveindetail

@cota
Copy link
Contributor Author

cota commented Apr 13, 2021

Using MCJIT is an effective workaround, e.g. https://reviews.llvm.org/D100344 .

Adding this note as a reminder to ourselves to clean up those invocations once this bug is fixed.

@joker-eph
Copy link
Collaborator

+Stefan and Lang for this, I assume it is likely just a missing plumbing between lli and ORC?

@lhames
Copy link
Contributor

lhames commented Apr 13, 2021

Hi Emilio, Mehdi,

Yep -- this was just missing plumbing. It should be fixed in 9b8e7a9.

-- Lang.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 11, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla orcjit
Projects
None yet
Development

No branches or pull requests

3 participants