diff --git a/docs/src/gpu.md b/docs/src/gpu.md index 507d7add7..f3cf6ee81 100644 --- a/docs/src/gpu.md +++ b/docs/src/gpu.md @@ -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) diff --git a/test/gpu/gpu.jl b/test/gpu/gpu.jl index 65e123be1..fbe3dbe77 100644 --- a/test/gpu/gpu.jl +++ b/test/gpu/gpu.jl @@ -1,5 +1,7 @@ -using LinearAlgebra, SparseArrays, Test -using Krylov +using SparseArrays, Random, Test +using LinearAlgebra, Krylov + +Random.seed!(666) include("../test_utils.jl")