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

Update and deprecate is_space::host_memory/execution/mirror_space #3973

Merged
merged 3 commits into from
May 6, 2021

Conversation

masterleinad
Copy link
Contributor

@masterleinad masterleinad commented Apr 27, 2021

Cherry-picked from #3838. In particular, provide correct definitions for SYCL, HIP and OpenMPTarget. Deprecated for HostMirror.

@Rombur
Copy link
Member

Rombur commented Apr 28, 2021

This PR does not pass because we are still using host_execution_space in Kokkos and so we get a lot of warnings.

core/src/Kokkos_Concepts.hpp Outdated Show resolved Hide resolved
Comment on lines +335 to +340
#elif defined(KOKKOS_ENABLE_HIP)
|| std::is_same<memory_space,
Kokkos::Experimental::HIPHostPinnedSpace>::value
#elif defined(KOKKOS_ENABLE_SYCL)
|| std::is_same<memory_space,
Kokkos::Experimental::SYCLSharedUSMSpace>::value
Copy link
Member

@dalg24 dalg24 Apr 29, 2021

Choose a reason for hiding this comment

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

This is OK but you must state clearly your fixing a defect in the description of this PR

Copy link
Member

Choose a reason for hiding this comment

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

On second thought, why do you think we should fix if we are deprecating anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer rather to not break users' code even if they are using deprecated functionality (especially if they turn off deprecation warnings).

Copy link
Member

Choose a reason for hiding this comment

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

You are not breaking code. It is already broken.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, but people are unlikely to use the new backends (in particular, SYCL and OpenMPtarget already. So if they use the deprecated versions in their code and want to use, say SYCL, with a new release their code might fail unexpectedly.
In the end, I just don't say much of a reason not to do our best here. I also tried to just forward to the replacement but that is a header dependency nightmare.

core/src/Kokkos_Concepts.hpp Show resolved Hide resolved
@dalg24
Copy link
Member

dalg24 commented Apr 29, 2021

Please say in the description what should be used instead.

@crtrott crtrott merged commit 063ab9d into kokkos:develop May 6, 2021
ndellingwood added a commit to trilinos/Trilinos that referenced this pull request Aug 29, 2022
is_space remove from Impl and host_mirror_space type deprecated
See kokkos/kokkos#3973
ndellingwood added a commit to trilinos/Trilinos that referenced this pull request Aug 30, 2022
is_space remove from Impl and host_mirror_space type deprecated
See kokkos/kokkos#3973
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