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

Improve handling of printf in OMPT on Intel GPUs #6652

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

masterleinad
Copy link
Contributor

Addressing #6650 (comment).
We are currently not printing anything when using OpenMPTarget on Intel GPUs and a non-zero number of arguments. We discussed that we rather give up on controlling the interface in this case and import printf from the global namespace.

@masterleinad
Copy link
Contributor Author

@rgayatri23 ping

Comment on lines +45 to +46
if constexpr (sizeof...(Args) == 0)
::printf("%s", format);
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need handle no arguments passed separately with these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this still avoids warnings (I don't exactly recall which exact compiler and compiler versions) and was part of the implementation before we made changes for OpenMPTarget, see https://github.com/kokkos/kokkos/pull/6083/files.

@dalg24
Copy link
Member

dalg24 commented Dec 21, 2023

Ignoring failures as they are due to storage issue on the test machines.

@dalg24 dalg24 merged commit fe06b6f into kokkos:develop Dec 21, 2023
28 of 29 checks passed
@masterleinad masterleinad mentioned this pull request Feb 9, 2024
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.

None yet

3 participants