summaryrefslogtreecommitdiff
path: root/candle-book/src/guide/installation.md
blob: c909a5dfae5e114316e69a179f696b3388958a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Installation

Start by creating a new app:

```bash
cargo new myapp
cd myapp
cargo add --git https://github.com/LaurentMazare/candle.git candle
```

At this point, candle will be built **without** CUDA support.
To get CUDA support use the `cuda` feature
```bash
cargo add --git https://github.com/LaurentMazare/candle.git candle --features cuda
```

You can check everything works properly:

```bash
cargo build
```


You can also see the `mkl` feature which could be interesting to get faster inference on CPU. [Using mkl](./advanced/mkl.md)