Skip to content

Commit

Permalink
[documentation] Update the section about AMD GPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Sep 9, 2023
1 parent c64dc49 commit 15eaf73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ if AMDGPU.functional()
A_csc_gpu = ROCSparseMatrixCSC(A_cpu)
A_csr_gpu = ROCSparseMatrixCSR(A_cpu)
A_coo_gpu = ROCSparseMatrixCOO(A_cpu)
b_gpu = CuVector(b_cpu)
b_gpu = ROCVector(b_cpu)

# Solve a rectangular and sparse system on an AMD GPU
x_csc, y_csc, stats_csc = lnlq(A_csc_gpu, b_gpu)
Expand Down
6 changes: 4 additions & 2 deletions test/gpu/gpu.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using LinearAlgebra, SparseArrays, Test
using Krylov
using SparseArrays, Random, Test
using LinearAlgebra, Krylov

Random.seed!(666)

include("../test_utils.jl")

Expand Down

0 comments on commit 15eaf73

Please sign in to comment.