From 89d0278bc6608a50442cb52760594a51c554962a Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Mon, 11 Sep 2023 23:19:21 -0400 Subject: [PATCH] docs: add doc to install cmake (#2805) Signed-off-by: Jinzhe Zeng --- doc/install/install-from-source.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/install/install-from-source.md b/doc/install/install-from-source.md index dd28d86ae5..4d75d484ec 100644 --- a/doc/install/install-from-source.md +++ b/doc/install/install-from-source.md @@ -166,6 +166,13 @@ cd $deepmd_source_dir/source mkdir build cd build ``` + +The installation requires CMake 3.16 or later for the CPU version, CMake 3.23 or later for the CUDA support, and CMake 3.21 or later for the ROCM support. One can install CMake via `pip` if it is not installed or the installed version does not satisfy the requirement: + +```sh +pip install -U cmake +``` + I assume you have activated the TensorFlow Python environment and want to install DeePMD-kit into path `$deepmd_root`, then execute CMake ```bash cmake -DUSE_TF_PYTHON_LIBS=TRUE -DCMAKE_INSTALL_PREFIX=$deepmd_root ..