-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
Description
I am unable to build cuda-samples on a fresh installation of Ubuntu 24.04. When running CMake, the configuration fails with target_compile_features no known features for CXX compiler "GNU" version 13.3.0 across multiple samples (e.g., cudaGraphsPerfScaling, transpose).
It appears that CMake is failing to map the feature set for GCC 13.3.0 when the project languages are mixed with CUDA, or the C++ standard detection is failing during the initial compiler check.
Environment
- OS: Ubuntu 24.04 LTS
- Compiler: GCC / G++ 13.3.0
- CUDA Toolkit: 13.1 (Targeting architecture
sm_90) - CMake: 3.28.3
Steps to Reproduce
- Clone the repository.
- mkdir build && cd build
- Run
cmake .. -DCMAKE_CUDA_ARCHITECTURES=90 -DCMAKE_CUDA_COMPILER=/usr/local/cuda-13.1/bin/nvcc
Generates Error
CMake Error at Samples/6_Performance/transpose/CMakeLists.txt:28 (target_compile_features):
target_compile_features no known features for CXX compiler
"GNU"
version 13.3.0.
Attempted Fixes
- I have tried forcing
CMAKE_CXX_STANDARD=17via command line arguments.
It seems that despite enabling the CXX language, CMake cannot retrieve the compile features list for this specific GCC version when invoked within this project structure.
Metadata
Metadata
Assignees
Labels
No labels