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

Deprecate backward compatibility features #3978

Conversation

masterleinad
Copy link
Contributor

@masterleinad masterleinad commented Apr 28, 2021

In the spirit of #3973. I decided not to touch ViewAllocateWithoutInitializing since we already have some kind of deprecation commented but not enabled.

Deprecated:

  • Kokkos::Experimental::Iterate -> Kokkos::Iterate
  • Kokkos::Experimental::MDRangePolicy -> Kokkos::MDRangePolicy
  • Kokkos::Experimental::Iterate -> Kokkos::Iterate
  • Kokkos::Experimental::Rank -> Kokkos::Rank
  • Kokkos::Impl::is_array_layout -> Kokkos::is_array_layout
  • Kokkos::Impl::is_execution_policy -> Kokkos::is_execution_policy
  • Kokkos::Impl::is_execution_space -> Kokkos::is_execution_space
  • Kokkos::Impl::is_memory_space -> Kokkos::is_memory_space
  • Kokkos::Impl::is_memory_traits -> Kokkos::is_memory_traits
  • Kokkos::Impl::is_space -> Kokkos::is_space
  • Kokkos::Impl::SpaceAccessibility -> Kokkos::SpaceAccessibility

@dalg24
Copy link
Member

dalg24 commented May 6, 2021

Please rebase

@masterleinad masterleinad force-pushed the mark_backward_compatibilities_as_deprecated branch from 8259955 to 4006af9 Compare May 6, 2021 14:14
@masterleinad
Copy link
Contributor Author

Rebased.

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.

Make sure you list what is being deprecated in the description.

Consider handling MDRangePolicy elsewhere

core/unit_test/incremental/Test14_MDRangeReduce.hpp Outdated Show resolved Hide resolved
@@ -56,7 +56,7 @@
#include <Kokkos_OpenMPTargetSpace.hpp>
#include <Kokkos_ScratchSpace.hpp>
#include <Kokkos_Parallel.hpp>
#include <Kokkos_TaskPolicy.hpp>
#include <Kokkos_TaskScheduler.hpp>
Copy link
Member

Choose a reason for hiding this comment

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

Was this intentional?

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, that file just forwards to Kokkos_TaskScheduler.hpp:

// For backward compatibility:
#include <Kokkos_TaskScheduler.hpp>

I didn't want to deal with issuing a deprecation warning when using this file but I also don't see a reason to use a deprecated file.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah we probably should try and emit a warning if people include it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See #4011.

core/unit_test/incremental/Test08_deep_copy.hpp Outdated Show resolved Hide resolved
core/src/KokkosExp_MDRangePolicy.hpp Show resolved Hide resolved
@masterleinad
Copy link
Contributor Author

Make sure you list what is being deprecated in the description.

Done.

@masterleinad masterleinad force-pushed the mark_backward_compatibilities_as_deprecated branch from 704271b to 9a7e037 Compare May 7, 2021 14:17
@masterleinad
Copy link
Contributor Author

Retest this please.

@Rombur
Copy link
Member

Rombur commented May 12, 2021

Retest this please

@masterleinad masterleinad requested a review from dalg24 May 12, 2021 19:46
@masterleinad
Copy link
Contributor Author

Retest this please.

1 similar comment
@masterleinad
Copy link
Contributor Author

Retest this please.

@crtrott crtrott merged commit 3d0536d into kokkos:develop May 24, 2021
ndellingwood added a commit to trilinos/Trilinos that referenced this pull request Mar 2, 2022
ndellingwood added a commit to trilinos/Trilinos that referenced this pull request Mar 2, 2022
ndellingwood added a commit to trilinos/Trilinos that referenced this pull request Apr 7, 2022
ndellingwood added a commit to trilinos/Trilinos that referenced this pull request Apr 18, 2022
ndellingwood added a commit to trilinos/Trilinos that referenced this pull request Apr 20, 2022
tcclevenger pushed a commit to trilinos/Trilinos that referenced this pull request May 26, 2022
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

4 participants