Unverified Commit 578d3d9d authored by 255's avatar 255 Committed by GitHub
Browse files

📝 Docs: Clarify CMake version requirement for CUDA dialects

Adds a note explaining that default CMake versions on systems like
Ubuntu 22.04 LTS might not support newer CUDA dialects (e.g., CUDA 20),
leading to specific build errors.

Recommends installing a newer CMake via the Kitware APT repository
as a resolution. This helps users troubleshoot errors like:
"Target ... requires the language dialect 'CUDA20', but CMake does not know the compile flags..."
parent 6617549d
...@@ -38,7 +38,8 @@ Some preparation: ...@@ -38,7 +38,8 @@ Some preparation:
export CUDA_PATH=$CUDA_PATH:/usr/local/cuda export CUDA_PATH=$CUDA_PATH:/usr/local/cuda
fi fi
``` ```
- Linux-x86_64 with gcc, g++ and cmake (using Ubuntu as an example) - Linux-x86_64 with gcc, g++>=11 and cmake>=3.25 (using Ubuntu as an example)
- **Note**: The default CMake version in Ubuntu 22.04 LTS or higher may not support newer CUDA language dialects (e.g., CUDA 20). This can cause errors such as Target "cmTC_xxxxxx" requires the language dialect "CUDA20", but CMake does not know the compile flags to use to enable it. To resolve this, install a newer CMake version, for instance, by adding the Kitware APT repository.
```sh ```sh
sudo apt-get update sudo apt-get update
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment