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

View static_extent #660

Closed
hcedwar opened this issue Feb 28, 2017 · 2 comments
Closed

View static_extent #660

hcedwar opened this issue Feb 28, 2017 · 2 comments
Assignees
Labels
Feature Request Create new capability; will potentially require voting

Comments

@hcedwar
Copy link
Contributor

hcedwar commented Feb 28, 2017

From: "Michael W. Gee" gee@mhpc.mw.tum.de
Date: Tuesday, February 28, 2017 at 12:12 PM
To: Harold Edwards hcedwar@sandia.gov
Subject: [EXTERNAL] compile time dimensions of View

Dear Carter,

I have a small question that I have not been able to find a solution on the Kokkos pages or tutorials:

Is it possible to get the compile time dimensions of a Kokkos::View at compile time and if yes, how?

I would very much appreciate your help in this. Personally I think this is relevant for many application developers so it might be worth adding a word about this in the documentation.

Best regards from Munich,

Michael

@hcedwar
Copy link
Contributor Author

hcedwar commented Feb 28, 2017

Michael,

Now that you mention it we need a convenient and public mechanism.
In the mean time you can get to the underlying implementation for this information:

V::dimension::ArgN# where V is a View type and # is in [0..8)

We need to add a new public function for this.

--Carter

@hcedwar hcedwar added the Feature Request Create new capability; will potentially require voting label Feb 28, 2017
@hcedwar hcedwar added this to the Backlog milestone Feb 28, 2017
@hcedwar hcedwar added the Question For Kokkos internal and external contributors and users label Feb 28, 2017
@hcedwar
Copy link
Contributor Author

hcedwar commented Feb 28, 2017

Current ISO/C++ proposals have a member function something like:
constexpr size_type static_extent( int ) const noexcept ;

@ibaned ibaned self-assigned this Mar 28, 2018
@ibaned ibaned modified the milestones: Backlog, 2018 June Mar 28, 2018
@ibaned ibaned removed the Question For Kokkos internal and external contributors and users label Aug 16, 2018
@ibaned ibaned modified the milestones: 2018 July, 2018 September Aug 16, 2018
@ibaned ibaned modified the milestones: 2018 September, 2018 December Nov 14, 2018
@ndellingwood ndellingwood modified the milestones: 2018 December, 2019 April Feb 6, 2019
@crtrott crtrott removed this from the 2019 April milestone Aug 21, 2019
@ibaned ibaned added this to the Tentative 3.1 Release milestone Sep 4, 2019
@crtrott crtrott closed this as completed Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Create new capability; will potentially require voting
Projects
None yet
Development

No branches or pull requests

4 participants