Skip to content

Commit

Permalink
Fix few typos
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Sep 13, 2022
1 parent 3c67dfb commit a97909a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions docs/src/gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ A_cpu = rand(ComplexF64, 20, 20)
A_cpu = A_cpu + A_cpu'
b_cpu = rand(ComplexF64, 20)

A = A + A'
A_gpu = ROCMatrix(A)
b_gpu = ROCVector(b)
A_gpu = ROCMatrix(A_cpu)
b_gpu = ROCVector(b_cpu)

# Solve a dense hermitian system on an AMD GPU
x, stats = minres(A_gpu, b_gpu)
Expand Down Expand Up @@ -178,7 +177,7 @@ using Krylov, Metal

T = Float32 # Metal.jl also works with ComplexF32
n = 10
n = 20
m = 20

# CPU Arrays
A_cpu = rand(T, n, m)
Expand Down
5 changes: 2 additions & 3 deletions test/gpu/amd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ using Krylov, AMDGPU
A_cpu = rand(ComplexF64, 20, 20)
A_cpu = A_cpu + A_cpu'
b_cpu = rand(ComplexF64, 20)
A = A + A'
A_gpu = ROCMatrix(A)
b_gpu = ROCVector(b)
A_gpu = ROCMatrix(A_cpu)
b_gpu = ROCVector(b_cpu)
x, stats = minres(A_gpu, b_gpu)
end

Expand Down
2 changes: 1 addition & 1 deletion test/gpu/metal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ end
@testset "documentation" begin
T = Float32
n = 10
n = 20
m = 20
A_cpu = rand(T, n, m)
b_cpu = rand(T, n)
A_gpu = MtlMatrix(A_cpu)
Expand Down

0 comments on commit a97909a

Please sign in to comment.