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

Solve compilation error in Ubuntu 22.04 and friends #337

Closed
nachovizzo opened this issue Nov 24, 2022 · 1 comment
Closed

Solve compilation error in Ubuntu 22.04 and friends #337

nachovizzo opened this issue Nov 24, 2022 · 1 comment
Labels

Comments

@nachovizzo
Copy link

Amazing work! This is not a bug report, but just leaving it here in case someone needs this in the future

Problem

For those trying to compile this on Ubuntu 22.04 and friends alike, I managed to solve the following error:

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
  435 |         function(_Functor&& __f)
      |                                              

The problem is that the default C++ compiler for Ubuntu 22.04 has a problem making friends with nvcc, more info on the related issues at the bottom

Solution

Install an older compiler and tell nvcc which is the host-compiler using CMake

sudo apt install g++10
cmake -DCMAKE_CUDA_HOST_COMPILER=/usr/bin/g++-10 -Bbuild

Related issues

@newptcai
Copy link

There is a typo. It should be g++-10

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

No branches or pull requests

2 participants