From 578d3d9d0927977769db6218a61cd1a7ccf65427 Mon Sep 17 00:00:00 2001 From: 255 <1293883574jcy@gmail.com> Date: Fri, 4 Apr 2025 20:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Docs:=20Clarify=20CMake=20versio?= =?UTF-8?q?n=20requirement=20for=20CUDA=20dialects?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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..." --- doc/en/install.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/en/install.md b/doc/en/install.md index b4a3879..5a51613 100644 --- a/doc/en/install.md +++ b/doc/en/install.md @@ -38,7 +38,8 @@ Some preparation: export CUDA_PATH=$CUDA_PATH:/usr/local/cuda 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 sudo apt-get update