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

Error installing ripser-plusplus #13

Open
adderbyte opened this issue Nov 17, 2022 · 6 comments
Open

Error installing ripser-plusplus #13

adderbyte opened this issue Nov 17, 2022 · 6 comments

Comments

@adderbyte
Copy link

adderbyte commented Nov 17, 2022

Trying yo install ripster-plusplus on my system and got this error:

Building NVCC (Device) object CMakeFiles/pyripser++.dir/ripserplusplus/pyripser++_generated_ripser++.cu.o
error: "__or_v" is not a function or static data member

100 errors detected in the compilation of "/tmp/pip-req-build-csf0lpi2/./ripserplusplus/ripser++.cu".
Together with similar errors like this, any idea what this might be due to?

Thank you!

@simonzhang00
Copy link
Owner

simonzhang00 commented Nov 17, 2022

What are your versions for cuda and gcc? As is shown here:

CUDA version max supported GCC version
11.1, 11.2, 11.3 10
11 9
10.1, 10.2 8

you need to have compatible GCC and CUDA versions. You can check your gcc and cuda by typing in:

gcc --version
and
nvcc --version

@adderbyte
Copy link
Author

adderbyte commented Nov 17, 2022

yes, I already confirmed this ... I have the right version .
Ripser installs perfectly too. 10.4.0 for gcc and Cuda 11.1

Does it mean for 11.1 it has to be strictly 10 .

Thank you!

@adderbyte adderbyte changed the title Error installing raspier-plusplus Error installing ripser-plusplus Nov 17, 2022
@simonzhang00
Copy link
Owner

Yes, you should probably try lowering the gcc version. If that doesn't work, try lowering the version of both CUDA and gcc.

@adderbyte
Copy link
Author

ok. I see. Thank you!

@Szustarol
Copy link

Have you been able to resolve this issue? I have the same problem when compiling, I have tried multiple cuda versions (11.1, 11.2, 11.3), and multiple GCC versions - 8.5, 9.5, 10.2, and also multiple CMake versions, but I have the same type of errors as highlighted above:

  <gcc_conda_environment>/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(148): error: "constexpr" is not valid here
  
  <gcc_conda_environment>/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(150): error: "__and_v" is not a function or static data member
  
  <gcc_conda_environment>/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(150): error: "constexpr" is not valid here
  
  <gcc_conda_environment>/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(170): error: "conjunction_v" is not a function or static data member
  
  <gcc_conda_environment>/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(170): error: "constexpr" is not valid here

Everything was installed in a fresh conda environment, with a dedicated gcc and gxx download.
@simonzhang00 can you maybe provide a configuration that you know is working?

@Szustarol
Copy link

Okay, I was not able to resolve this within the supported CUDA versions, but the combination from google colab (GCC/GXX ver. 11.4.0, CUDA ver. 11.8.89) seems to work. Looks like the readme could use an update, but I'm not sure what are the exact compatibilities.

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

3 participants