You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ap...@apache.org on 2020/01/11 20:28:24 UTC

[incubator-mxnet] branch master updated: Improve ubuntu_setup.md cmake instructions (#17273)

This is an automated email from the ASF dual-hosted git repository.

apeforest pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 0b26914  Improve ubuntu_setup.md cmake instructions (#17273)
0b26914 is described below

commit 0b269149762b9f04d25f7b0be3680eae1fcfaefe
Author: Leonard Lausen <la...@amazon.com>
AuthorDate: Sat Jan 11 21:27:26 2020 +0100

    Improve ubuntu_setup.md cmake instructions (#17273)
---
 docs/static_site/src/pages/get_started/ubuntu_setup.md | 17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/docs/static_site/src/pages/get_started/ubuntu_setup.md b/docs/static_site/src/pages/get_started/ubuntu_setup.md
index effedc0..35c5f00 100644
--- a/docs/static_site/src/pages/get_started/ubuntu_setup.md
+++ b/docs/static_site/src/pages/get_started/ubuntu_setup.md
@@ -81,8 +81,7 @@ On Ubuntu versions 16.04 or later, you need the following dependencies:
 **Step 1:** Install prerequisite packages.
 ```bash
     sudo apt-get update
-    sudo apt-get install -y build-essential git ninja-build ccache python3-pip libopenblas-dev libopencv-dev
-    pip3 install --user --upgrade "cmake>=3.13.2"  # Instead of using pip, you could also manually install cmake from https://cmake.org
+    sudo apt-get install -y build-essential git ninja-build ccache libopenblas-dev libopencv-dev cmake
 ```
 
 Instead of `libopenblas-dev` you may also choose a different math library.
@@ -93,6 +92,14 @@ Selection](build_from_source#math-library-selection) section.
 install` line and build MXNet without OpenCV support by passing
 `-DUSE_OPENCV=OFF` to the `cmake` command below.
 
+Note: CMake 3.13 or higher is required. If you are running an older version of
+CMake, you will see an error message like `CMake 3.13 or higher is required. You
+are running version 3.10.2` during Step 3. In that case please update CMake on
+your system. You can download and install latest CMake from https://cmake.org or
+via `pip3` with `pip3 install --user --upgrade "cmake>=3.13.2"`. If `pip3` is
+not available on your system, you can install it via `sudo apt-get install -y
+python3-pip`.
+
 **Step 2:** Download MXNet sources
 
 Clone the repository:
@@ -109,7 +116,7 @@ For a CPU-only build with OpenBLAS math library run:
 ```bash
     rm -rf build
     mkdir -p build && cd build
-    ~/.local/bin/cmake -GNinja \
+    cmake -GNinja \
         -DUSE_CUDA=OFF \
         -DUSE_MKL_IF_AVAILABLE=OFF \
         -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \
@@ -129,7 +136,7 @@ respectively. Then run:
 ```bash
     rm -rf build
     mkdir -p build && cd build
-    ~/.local/bin/cmake -GNinja \
+    cmake -GNinja \
         -DUSE_CUDA=OFF \
         -DUSE_MKL_IF_AVAILABLE=ON \
         -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \
@@ -146,7 +153,7 @@ For a GPU-enabled build make sure you have installed the
 ```bash
     rm -rf build
     mkdir -p build && cd build
-    ~/.local/bin/cmake -GNinja \
+    cmake -GNinja \
         -DUSE_CUDA=ON \
         -DUSE_MKL_IF_AVAILABLE=OFF \
         -DCMAKE_CUDA_COMPILER_LAUNCHER=ccache \