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

Test lac/parallel_vector_21: do not use KOKKOS_IMPL_DO_NOT_USE_PRINTF and indeed use printf #14730

Closed
wants to merge 1 commit into from

Conversation

tamiko
Copy link
Member

@tamiko tamiko commented Jan 26, 2023

Older versions of Kokkos that come bundled with Trilinos older than 13.2
do not contain the KOKKOS_IMPL_DO_NOT_USE_PRINTF macro. Simply disable
the test in this case.

@drwells
Copy link
Member

drwells commented Jan 26, 2023

/rebuild

@masterleinad
Copy link
Member

masterleinad commented Jan 26, 2023

Does calling KOKKOS_IMPL_DO_NOT_USE_PRINTF make a difference here?

Copy link
Member

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

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

We shouldn't use KOKKOS_IMPL_DO_NOT_USE_PRINTF. The test output should be the same without it.

@tamiko
Copy link
Member Author

tamiko commented Jan 26, 2023

@masterleinad Good point, I will update the pull request.

@tamiko tamiko changed the title Test lac/parallel_vector_21: limit test to newer Kokkos version Test lac/parallel_vector_21: do not use KOKKOS_IMPL_DO_NOT_USE_PRINTF and indeed use printf Jan 26, 2023
@tamiko tamiko requested a review from drwells January 26, 2023 04:04
@tamiko
Copy link
Member Author

tamiko commented Jan 26, 2023

@drwells @masterleinad Updated.

Copy link
Member

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

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

No, you can't use printf in kernels in general. I would just remove the whole kernel, see #14733.

@tamiko tamiko closed this Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants