Merge pull request #553 from xiaodaigh/patch-2
Updated with more detailed instructions for installing CuArrays
This commit is contained in:
commit
bb2210f552
@ -1,5 +1,17 @@
|
|||||||
# GPU Support
|
# GPU Support
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
To get GPU support for NVIDIA graphics cards, you need to install `CuArrays.jl`
|
||||||
|
|
||||||
|
**Steps needed**
|
||||||
|
|
||||||
|
1. Install [NVIDIA toolkit](https://developer.nvidia.com/cuda-downloads)
|
||||||
|
2. Install [NVIDIA cuDNN library](https://developer.nvidia.com/cudnn)
|
||||||
|
3. In Julia's terminal run `]add CuArrays`
|
||||||
|
|
||||||
|
## GPU Usage
|
||||||
|
|
||||||
Support for array operations on other hardware backends, like GPUs, is provided by external packages like [CuArrays](https://github.com/JuliaGPU/CuArrays.jl). Flux is agnostic to array types, so we simply need to move model weights and data to the GPU and Flux will handle it.
|
Support for array operations on other hardware backends, like GPUs, is provided by external packages like [CuArrays](https://github.com/JuliaGPU/CuArrays.jl). Flux is agnostic to array types, so we simply need to move model weights and data to the GPU and Flux will handle it.
|
||||||
|
|
||||||
For example, we can use `CuArrays` (with the `cu` converter) to run our [basic example](models/basics.md) on an NVIDIA GPU.
|
For example, we can use `CuArrays` (with the `cu` converter) to run our [basic example](models/basics.md) on an NVIDIA GPU.
|
||||||
|
Loading…
Reference in New Issue
Block a user