NVIDIA / NVIDIA/cuvs

[BUG] Build failure when compiling cuvs-25.08 from source: CUDA sync primitives require sm_70+ architecture

Open
#1,180 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Cuda
Stars
854
Forks
236
Avg merge
3d 3h
Merged PRs (30d)
62

Description

Describe the bug
When building cuvs-25.08 from source, the following error occurs after running make -j4:

error "CUDA synchronization primitives are only supported for sm_70 and up."

The compilation will succeeds, if I manually add set(CMAKE_CUDA_ARCHITECTURES "70;75;80;86" CACHE STRING "CUDA architectures to build for") to cpp/CMakeLists.txt :

if(NOT BUILD_CPU_ONLY)
include(rapids-cuda)
rapids_cuda_init_architectures(CUVS)
set(CMAKE_CUDA_ARCHITECTURES "70;75;80;86" CACHE STRING "CUDA architectures to build for")
list(APPEND lang_list "CUDA")
endif()

Steps/Code to reproduce bug
I followed the guide of https://docs.rapids.ai/api/cuvs/legacy/build/#build-from-source and encountered the error:

conda env create --name cuvs -f conda/environments/all_cuda-129_arch-x86_64.yaml
conda activate cuvs
mkdir build;cd build;
cmake -D BUILD_TESTS=ON -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX ../
make -j4

Expected behavior
The Official guide should lead to a successful compile.

Environment details (please complete the following information):

  • Environment location: Bare-metal
  • Method of cuvs install: from source
  • My nvidia driver version: 575.64.03
  • My cuda versiton: 12.9
  • My os: ubuntu-22.04 lts

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with cpp/CMakeLists.txt, especially the rapids_cuda_init_architectures(CUVS) call and the documented CMAKE_CUDA_ARCHITECTURES workaround. Reproduce the failure using the listed conda, cmake, and make commands, then verify that a source build completes successfully without the manual workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.