Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

fix the cmake cmd with wrong path #15111

Merged
merged 1 commit into from
Jun 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/install/build_from_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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
```

Expand All @@ -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
```

Expand All @@ -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
```

Expand All @@ -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
```

Expand All @@ -278,15 +278,15 @@ ninja -v

```bash
mkdir build && cd build
cmake -DUSE_OPENCV=0 -GNinja .
cmake -DUSE_OPENCV=0 -GNinja ..
ninja -v
```

* Build on **macOS** with the default BLAS library (Apple Accelerate) and Clang installed with `xcode` (OPENMP is disabled because it is not supported by the Apple version of Clang):

```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
```

Expand All @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion docs/install/c_plus_plus.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down