From a09d65144116467b068b9c4a95a8266397be3908 Mon Sep 17 00:00:00 2001 From: Jianyu Zhang Date: Fri, 31 May 2019 13:20:06 +0530 Subject: [PATCH] fix the cmake cmd with wrong path --- docs/install/build_from_source.md | 16 ++++++++-------- docs/install/c_plus_plus.md | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/install/build_from_source.md b/docs/install/build_from_source.md index 7b00b03abefe..153bc8bf1904 100644 --- a/docs/install/build_from_source.md +++ b/docs/install/build_from_source.md @@ -231,7 +231,7 @@ For example, you can specify using all cores on Linux as follows: ```bash mkdir build && cd build -cmake -GNinja . +cmake -GNinja .. ninja -v ``` @@ -241,7 +241,7 @@ ninja -v ```bash mkdir build && cd build -cmake -DUSE_CUDA=1 -DUSE_CUDA_PATH=/usr/local/cuda -DUSE_CUDNN=1 -DUSE_MKLDNN=1 -GNinja . +cmake -DUSE_CUDA=1 -DUSE_CUDA_PATH=/usr/local/cuda -DUSE_CUDNN=1 -DUSE_MKLDNN=1 -GNinja .. ninja -v ``` @@ -250,7 +250,7 @@ ninja -v ```bash mkdir build && cd build -cmake -DBLAS=open -DUSE_CUDA=1 -DUSE_CUDA_PATH=/usr/local/cuda -DUSE_CUDNN=1 -GNinja . +cmake -DBLAS=open -DUSE_CUDA=1 -DUSE_CUDA_PATH=/usr/local/cuda -DUSE_CUDNN=1 -GNinja .. ninja -v ``` @@ -259,7 +259,7 @@ ninja -v ```bash mkdir build && cd build -cmake -DUSE_CUDA=0 -DUSE_MKLDNN=1 -GNinja . +cmake -DUSE_CUDA=0 -DUSE_MKLDNN=1 -GNinja .. ninja -v ``` @@ -268,7 +268,7 @@ ninja -v ```bash mkdir build && cd build -cmake -DUSE_CUDA=0 -DBLAS=open -GNinja . +cmake -DUSE_CUDA=0 -DBLAS=open -GNinja .. ninja -v ``` @@ -278,7 +278,7 @@ ninja -v ```bash mkdir build && cd build -cmake -DUSE_OPENCV=0 -GNinja . +cmake -DUSE_OPENCV=0 -GNinja .. ninja -v ``` @@ -286,7 +286,7 @@ ninja -v ```bash mkdir build && cd build -cmake -DBLAS=apple -DUSE_OPENCV=0 -DUSE_OPENMP=0 -GNinja . +cmake -DBLAS=apple -DUSE_OPENCV=0 -DUSE_OPENMP=0 -GNinja .. ninja -v ``` @@ -295,7 +295,7 @@ ninja -v ```bash brew install llvm mkdir build && cd build -cmake -DBLAS=apple -DUSE_OPENMP=1 -GNinja . +cmake -DBLAS=apple -DUSE_OPENMP=1 -GNinja .. ninja -v ``` diff --git a/docs/install/c_plus_plus.md b/docs/install/c_plus_plus.md index ee21014bc5f1..2df8b42250bf 100644 --- a/docs/install/c_plus_plus.md +++ b/docs/install/c_plus_plus.md @@ -23,7 +23,7 @@ To enable C++ package, just add `USE_CPP_PACKAGE=1` in the [build from source](b For example to build MXNet with GPU support and the C++ package, OpenCV, and OpenBLAS, from the project root you would run: ```bash -cmake -DUSE_CUDA=1 -DUSE_CUDA_PATH=/usr/local/cuda -DUSE_CUDNN=1 -DUSE_MKLDNN=1 -DUSE_CPP_PACKAGE=1 -GNinja . +cmake -DUSE_CUDA=1 -DUSE_CUDA_PATH=/usr/local/cuda -DUSE_CUDNN=1 -DUSE_MKLDNN=1 -DUSE_CPP_PACKAGE=1 -GNinja .. ninja -v ```