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

Remove KOKKOS_ENABLE_DEBUG_PRINT_KERNEL_NAMES #4150

Merged

Conversation

masterleinad
Copy link
Contributor

@masterleinad masterleinad commented Jul 8, 2021

Related to #3966 (comment). I think it's a good idea to have a useful preprocessor switch defined through CMake (and thus documented). Of course, the same effect can be achieved by using Tools.
If we say that that's the proper way and should always be preferred, I would rather remove the functionality in Core.

edit: We remove KOKKOS_ENABLE_DEBUG_PRINT_KERNEL_NAMES instead.

@masterleinad
Copy link
Contributor Author

Retest this please.

dalg24
dalg24 previously requested changes Jul 12, 2021
Copy link
Member

@dalg24 dalg24 left a comment

Choose a reason for hiding this comment

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

Drop KOKKOS_ENABLE_DEBUG_PRINT_KERNEL_NAMES and the code that it was guarding

@masterleinad
Copy link
Contributor Author

Drop KOKKOS_ENABLE_DEBUG_PRINT_KERNEL_NAMES and the code that it was guarding

Hmm... I want to at least discuss if we really want to drop this feature. People might be surprised that it just disappeared. Of course, deprecating is not really possible either.

@crtrott crtrott added this to In progress in Kokkos Release 3.5 Jul 14, 2021
@crtrott crtrott moved this from In progress to Awaiting Feedback in Kokkos Release 3.5 Jul 14, 2021
@crtrott
Copy link
Member

crtrott commented Jul 14, 2021

Meeting decision: Drop this entirely:

SF F N A SA
2 5 3 0 0

We drop this without warning and consider it a bug that it even existed (completely untested). Use kernel logger or so,

@masterleinad masterleinad force-pushed the cmake_kokkos_print_kernel_names branch from 3cfd866 to b23baad Compare July 14, 2021 19:54
@masterleinad masterleinad changed the title Make Kokkos_ENABLE_DEBUG_PRINT_KERNEL_NAMES a CMake option Remove KOKKOS_ENABLE_DEBUG_PRINT_KERNEL_NAMES Jul 14, 2021
@masterleinad
Copy link
Contributor Author

I changed the pull request to remove KOKKOS_DEBUG_PRINT_KERNEL_NAMES instead.

@masterleinad masterleinad requested a review from dalg24 July 14, 2021 19:55
Copy link
Member

@crtrott crtrott left a comment

Choose a reason for hiding this comment

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

What about the void(str)?

Kokkos::fence();
std::cout << "KOKKOS_DEBUG End parallel_for kernel: " << str << std::endl;
#endif
(void)str;
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 the (void)str?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAICT, str is still used in all cases, so we don't have to do this (and none of the CI checks complains).

Copy link
Member

Choose a reason for hiding this comment

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

ok

@crtrott crtrott merged commit 35ae5dc into kokkos:develop Jul 15, 2021
Kokkos Release 3.5 automation moved this from Awaiting Feedback to Done Jul 15, 2021
@masterleinad masterleinad moved this from Awaiting Feedback to Done in Developer: Daniel Arndt Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants