Skip to content

Handle argument mismatch in OpenMP kernel - #67

Merged
ronlieb merged 1 commit into
ROCm:aomp-devfrom
DominikAdamski:arg-mismatch-fix
Feb 20, 2023
Merged

ronlieb merged 1 commit into
ROCm:aomp-devfrom
DominikAdamski:arg-mismatch-fix

Conversation

@DominikAdamski

Copy link
Copy Markdown
Contributor

Clang and Flang can generate the code where the host side can invoke target offloading procedure with more arguments than the number of device OpenMP kernel arguments.

If given host symbol is not mapped into the device symbol then it should be not treated as valid param for offloading.

Clang and Flang can generate the code where the host side
can invoke target offloading procedure with more arguments
than the number of device OpenMP kernel arguments.

If given host symbol is not mapped into the device symbol
then it should be not treated as valid param for offloading.

@ronlieb ronlieb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, passes my tests, and most importantly passes with cov=4 and cov=5

@ronlieb
ronlieb merged commit ad995d8 into ROCm:aomp-dev Feb 20, 2023
rocm-ci pushed a commit that referenced this pull request May 1, 2023
Clang and Flang can generate the code where the host side
can invoke target offloading procedure with more arguments
than the number of device OpenMP kernel arguments.

If given host symbol is not mapped into the device symbol
then it should be not treated as valid param for offloading.

Change-Id: Iba7480b08030447532522a4ad8f5a55f7dcef34d
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.

2 participants