Skip to content
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
13 changes: 13 additions & 0 deletions docs/src/solvers/solvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,19 @@ The following are non-standard GPU factorization routines.
CudaOffloadFactorization
```

### AMDGPU.jl

The following are GPU factorization routines for AMD GPUs using the ROCm stack.

!!! note

Using these solvers requires adding the package AMDGPU.jl, i.e. `using AMDGPU`

```@docs
AMDGPUOffloadLUFactorization
AMDGPUOffloadQRFactorization
```

### CUSOLVERRF.jl

!!! note
Expand Down
14 changes: 12 additions & 2 deletions docs/src/tutorials/gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,18 @@ sol.u
This computation can be moved to the GPU by the following:

```julia
using CUDA # Add the GPU library
sol = LS.solve(prob, LS.CudaOffloadFactorization())
using CUDA # Add the GPU library for NVIDIA GPUs
sol = LS.solve(prob, LS.CudaOffloadLUFactorization())
sol.u
```

For AMD GPUs, you can use the AMDGPU.jl package:

```julia
using AMDGPU # Add the GPU library for AMD GPUs
sol = LS.solve(prob, LS.AMDGPUOffloadLUFactorization()) # LU factorization
# or
sol = LS.solve(prob, LS.AMDGPUOffloadQRFactorization()) # QR factorization
sol.u
```

Expand Down
Loading