Unverified Commit 9708d090 authored by Jan Leyonberg's avatar Jan Leyonberg Committed by GitHub
Browse files

[MLIR][OpenMP] Skip host omp ops when compiling for the target device (#85239)

This patch separates the lowering dispatch for host and target devices.
For the target device, if the current operation is not a top-level
operation (e.g. omp.target) or is inside a target device code region it
will be ignored, since it belongs to the host code.


This is an alternative approach to #84611, the new test in this PR was
taken from there.
parent 379628d4
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment