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

novice usage question #68

Closed
prlw1 opened this issue Sep 1, 2021 · 3 comments
Closed

novice usage question #68

prlw1 opened this issue Sep 1, 2021 · 3 comments

Comments

@prlw1
Copy link

prlw1 commented Sep 1, 2021

I have a checkout of https://github.com/BobSteagall/wg21.git in /usr/src/local/wg21, and https://github.com/kokkos/mdspan.git in /usr/src/local/mdspan, head from just now. I thought I might start with the staggeringly complex program:

#include <linear_algebra.hpp>

int main() { }

but with g++ 10.3.0, I see:

c++  -O2 -fPIE -g -Werror -std=c++20     -I/usr/src/local/mdspan/include -I/usr/src/local/wg21/include  -c    wg21test.cc
In file included from /usr/src/local/wg21/include/linear_algebra.hpp:62,
                 from wg21test.cc:1:
/usr/src/local/wg21/include/linear_algebra/private_support.hpp:276:27: error: ‘basic_mdspan’ was not declared in this scope
  276 | struct extract_span_types<basic_mdspan<T0, X0, L0, A0>, basic_mdspan<T1, X1, L1, A1>>
      |                           ^~~~~~~~~~~~

What am I missing?

@Twon
Copy link
Collaborator

Twon commented Sep 2, 2021

So this is caused by the fact that basic_mdspan has been renamed to mdspan in the Kokkos repository. We are going to address this change in the WG21 LA repo shortly, but for now, this should not cause an issue because we have pinned WG21 LA to using a specific version of the Kokkos repository before this change was made, see here:

FetchContent_Declare(mdspan GIT_REPOSITORY https://github.com/kokkos/mdspan.git GIT_TAG 9d1acac543053cbe6839273f550b1ece218e9696)

I've just checked out a clean version of the repository and can confirm this is building for me. Can you please provide more details on the steps you took to generate this error?

  • Which OS, Compiler, Architecture are you attempting to build on?
  • Do you have the latest version of the code? Was this a clean checkout or updating an existing repo?
  • Have you tried deleting the build folder (the Kokkos repository is synced here so deleting this will force a new fetch of the Kokkos repository from scratch (If you have the latest change this should work)
  • Are you building from a clone of the Github repo, or using the Conan package?

@prlw1
Copy link
Author

prlw1 commented Sep 2, 2021

Thank you - that is precisely what I was missing.

cd /usr/src/local/mdspan
git checkout 9d1acac54305

and the trivial program compiles.

@Twon
Copy link
Collaborator

Twon commented Sep 2, 2021

Great, I'm glad that has solved your issue. I'll close this down for now. Feel free to reopen, or open a new issue if you encounter any further issues.

@Twon Twon closed this as completed Sep 2, 2021
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

No branches or pull requests

2 participants