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

[MLIR][OpenMP] Support lowering of host_eval to LLVM IR #179

Open
wants to merge 1 commit into
base: users/skatrak/target-passthrough-02-mlir
Choose a base branch
from

Conversation

skatrak
Copy link

@skatrak skatrak commented Oct 10, 2024

This patch updates the MLIR to LLVM IR lowering of omp.target to support passing num_teams, num_threads, thread_limit and SPMD loop bounds through the host_eval argument of omp.target.

This replaces the previous implementation where this information was directly attached to the omp.target operation rather than captured to be used by the corresponding nested operation.

The implementation of TargetOp::getInnermostCapturedOmpOp is also improved to address bugs in the detection of target SPMD in MLIR, uncovered by changes to the translation to LLVM IR.

This patch updates the MLIR to LLVM IR lowering of `omp.target` to support
passing `num_teams`, `num_threads`, `thread_limit` and SPMD loop bounds through
the `host_eval` argument of `omp.target`.

This replaces the previous implementation where this information was directly
attached to the `omp.target` operation rather than captured to be used by the
corresponding nested operation.
@skatrak skatrak force-pushed the users/skatrak/target-passthrough-02-mlir branch from 44b6230 to 719e50c Compare October 11, 2024 13:10
@skatrak skatrak force-pushed the users/skatrak/target-passthrough-03-mlir-llvm branch from e2ee789 to a9a83c9 Compare October 11, 2024 13:11
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.

1 participant