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

Avoid accessing memebers in Implementation namespaces #906

Open
mperego opened this issue Feb 1, 2023 · 3 comments
Open

Avoid accessing memebers in Implementation namespaces #906

mperego opened this issue Feb 1, 2023 · 3 comments

Comments

@mperego
Copy link
Collaborator

mperego commented Feb 1, 2023

We are using functions/classes in Impl namespaces.

>> git grep "::Impl::"
src/PHAL_Utilities_Def.hpp:  auto layout = Kokkos::Impl::reconstructLayout(src.layout(), src.rank());
src/PHAL_Utilities_Def.hpp:  auto ml = Kokkos::Impl::reconstructLayout(sl, real_rank);

This is not recommended because functions/classes in Impl namespaces can change frequently. Kokkos developers are pushing applications to avoid doing so.

@jewatkins @kliegeois @bartgol any volunteer to address this issue?

@jewatkins
Copy link
Collaborator

Looks like @ibaned might have put this in based on some const issues? See 7c34226#diff-f65ed18732c81ee5d12806153e9984789d4aca4f6bdbc649866b2dd65992e244R224 & #34 Unless it predates that merge and it was moved around. Dan is there an easy way to get rid of this? No problem if you don't recall what the original issue was. It looks like create_copy() is only used in some of the core/demo pdes.

@ibaned
Copy link
Contributor

ibaned commented Feb 1, 2023

Yea, I have no memory of this. I would recommend either opening and issue on the Kokkos GitHub repository or asking on the Kokkos Slack channel what the best way is to write these create_copy functions without calling Kokkos implementation functions. Also, the developers of Sacado may be able to answer that same question.

@bartgol
Copy link
Collaborator

bartgol commented Feb 1, 2023

I have no clue what those routines are trying to achieve. I am also not a big expert of DynRankView details. I think Dan is right, asking on kokkos channels might be a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants