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

llvm/execution: Use 'evaluate' function params when constructing simulation input #2467

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

jvesely
Copy link
Collaborator

@jvesely jvesely commented Aug 17, 2022

The original code assumed 'run' variant would be called.
This is not the case for parallel evaluate that only needs
'run, simulation' variant, resulting in redundant code generation and compiler
calls.

Instead, just use the 'evaluate' function that provides the
same binary type at a different argument location.

Tested by asserting that Python-{LLVM,PTX} tests only generate
'run, simulation' variant of the composition function.

Signed-off-by: Jan Vesely [email protected]

@github-actions
Copy link

This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):

No differences!

...

See CI logs for the full diff.

…lation input

The original code assumed 'run' variant would be called.
This is not the case for parallel evaluate that only needs
'run, simulation' variant, resulting in redundant code
generation and compiler calls.

Instead, use the 'evaluate' compiled function that provides the
same binary type of the argument at a different offset.

Tested by asserting that Python-{LLVM,PTX} tests only generate
'run, simulate' variant of the composition function.

Signed-off-by: Jan Vesely <[email protected]>
@jvesely jvesely added the compiler Runtime Compiler label Aug 17, 2022
@github-actions
Copy link

This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):

No differences!

...

See CI logs for the full diff.

@jvesely jvesely merged commit ab6e911 into PrincetonUniversity:devel Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Runtime Compiler
Projects
Development

Successfully merging this pull request may close these issues.

1 participant