Skip to content
Discussion options

You must be logged in to vote

The error isn't in sd.cpp:

/usr/include/c++/11/bits/std_function.h:435: error: parameter packs not expanded with '...'

That's CUDA 11.5's nvcc choking on GCC 11 headers. Ubuntu 22.04 ships both, so the apt combo is broken out of the box. Your CPU build works because nvcc never runs.

Best fix is CUDA 12.x from NVIDIA's repo — your 3050 is sm_86 and fully supported. Build in a fresh directory, the old one caches the bad paths:

rm -rf build
cmake -B build -DSD_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=86
cmake --build build -j$(nproc)

If you want to keep 11.5, pin an older host compiler instead:

sudo apt install g++-10
cmake -B build -DSD_CUDA=ON -DCMAKE_CUDA_ARCHITECTURES=86 -DCMAKE_CUDA_HOST_CO…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ricardosantos79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants